Django and Bootstrap relationship [closed] - django

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm working on a development road map for a django project. My choosen IDE is pycharm pro and mock up tool is bootstrap studio. One of my criteria is a calendar and I have discovered that none of the existing public projects will meet my needs so I will have to create one from scratch (no problem). My typical approach would have been that the UI and the django project would be done in near parallel periodically merging and diverging the two. However, given the ability of the two software tools, I'm starting to think that that a better approach may be to do the UI first in BSS, next import the templates into the django project and finally perform the django dev to meet the needs of the UI.
The specific calendar functionality is not the issue here, this is a methodology question. While I know that there is a subjective answer to this question (which is not the "answer" I'm looking for here), there also has to be an objective answer as to why this would not work, or be the incorrect approach.

Doing the UI first is fine if you already know exactly what you want it to do and can specify that. Doing the Django first lets you play around with a working rough version and get a better feel for what works best before fine tuning the look and feel. Like you suggest, working on them both together will let each inform the other.

Related

advice for naming GCP projects [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I am building a mobile dating app and plan to leverage google's cloud infrastructure.
I'm trying to figure out whether the entire application should live in a single GCP project or not.
On reading the best practices documentation I can see they advise the following naming convention:
[company tag]-[group tag]-[system name]-[environment (dev, test, uat, stage, prod)]
So should I split all the core components of the application between different projects? For example one for the data science matching algorithm (fizz-ds-matching-dev) and one for the android application? Or should I jam it all in one project?
Looking to follow best practices...
You're asking for some heat here. What to call things is probably as confrontational as asking vim or emacs!
As an employee of a large company where I oversee like 50 GCP projects my advice would be pick a naming scheme that lets your i-dont-have-time-for-this-kubernetes-gke-yaml-shit developer/pm/boss man find the project they want in 8 key presses or less.
A scheme which has worked well for me is: org-app-environment which is fairly close to what google recommends. I imagine your ops, so dont try to be clever with your naming scheme. Even though your users are dev, they're still users. If it takes them more than 5 seconds to find their project, they will do whatever the equivalent of an Arab spring is in the software world.
You need to find the nirvana of if the new guy is using this, is it easy to filter and find and is it quick to identify wtf is running there.
I recommend org-app-environment. Drop the org if you only have one, otherwise keep it.
Gods speed ops man.

How to avoid being crawled/penalized by Google [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
OVERVIEW
I'd like to test some Django websites using random data on a production server using real domain names, but these websites will be simple tests with possible duplicated data (quite probable not following Google rules). I know usually for this you use a development/staging/virtual box for such a task, but I do want to use directly the production box with the real DNS.
Now, I'm kind of new on website development and SEO, and I wouldn't like to mess with SEO and Google.
What'd be the right way to proceed here? Should I try to avoid being indexed/crawled by Google somehow? Any other advices?
You can disallow the complete indexing of your page and then later (when you're done with coding) activate it again.
Thats probably the best way because google is not going to crawl "bad pages" (for example when your website still is in development) and thus you will not get a Ranking so far (called Page Ranking if you want to look it up).

How to structure a Django website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
After creating reusable Django apps do one make an app that glue them together to create a website? Also is it correct to make each menu item and section an app itself in Django? The source code of https://www.djangoproject.com/ is probably the best example of how to correctly structure Django websites if it is available.
How you organise your project is up to you and mostly depends on the project's specific needs, but yes using a "main" app to glue the pieces together is a common and working pattern. Also you don't have to try and make your project's apps reusable - start with just what your project requires and if you find out some parts solve recurring problems it will be time to factor them out as more generic apps.
Wrt/ your menus they have to match the site features not it's implementation so the "one app one menu" thing very seldom makes sense. And since it's a "glue" part it really belongs to the project's main app (even if it usually delegates parts of the job to other apps).

How to test a user's code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
My query is very basic one but just want to know the exact things which occur behind the bars and how. Lets say, I am given a question to code. User submits the code in any language(I'd like to go for C or C++ here specifically), now the code gets tested on various test files at the server side. How this happens? As I think and searched, there must be a code at the server side which must be accepting solutions(user's code) from the client in form of the file, then run that file on various test files(which will have all test cases according to the input and output specified in the problem description) and match the output. Is it? I think there is something else or something which I am mistaken.
If I have a very simple program to add two numbers, now I want to test the user's code, what exactly do I have to do? I am asking from the implementation point of view i.e. I want to actually do and test the same on my machine. Can someone please tell me from basic what all I should do?(Much the same way online judges do)
PS: I am not asking this for hosting any contest etc, just doing out of curiosity for learning.
I would divide this into two sub goals
learning automated testing
setting up some application which allows the user to submit testcases, run the automated tests and reports feedback
You could start to get some deeper insight by setting up automated tests for some program in your favourite programming language.
Use a search engine to e.g. look for "automated c++ testing".
If you have managed setting up a few automated tests on a local machine, your could then progress with the second goal.
For example you could set up a Jenkins instance and learn how to add automated tests to it.

Design Pattern for In-Game UI [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm currently developing a game with friends. We are searching for informations about design patterns for User Interface in order to implement a simple UI including: buttons, progress bar (for health, exp, mana, ...), text, views/subviews, and scroll views.
The first goal is to have something simple but working. We are not looking for patterns about making an UI loading from XML/JSON files, we just need information about the inheritance of our classes and their relationship.
While it doesn't matter while we talk about design patterns and algorithms, we develop in C++, using SFML/OpenGL 2.x for rendering.
Any additional information about implementation in C++/OpenGL are welcome :)
EDIT: I already know about the common design patterns and the MVC architecture, but I look for a far more simple alternative since our goal is not to recreate Qt or Cocoa.
My question is more about an alternative and how to organize these patterns.
I suggest you go over this site, it has a great example from "Gang of 4" (look it up)
great web for design patterns
and there is also a great tutorial in youtube
http://www.youtube.com/user/derekbanas