ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Seems accurate from the chapter and verse for MVC.
I have to be honest, I'm not a huge proponent of design patterns.
Can I ask, why you're asking?
For me the only reason why things like this ever come up is that they're part of a job description, and I've found many times that they are meaningless to the actual job in question.
1 - I am trying to get a job as a python developer
2 - Python developers are expected to have a GitHub repository and be aware of python frameworks such as Django
3 - Django is based on MVC
You are welcome to tell me advices
Last edited by snowmagician; 01-22-2020 at 08:49 AM.
There are several subtly different interpretations/implementations of MVC, so you'll probably get conflicting advice.
For example, I disagree with what you've written and would say something more like:
M = deals with the data model of the application
V = deals with displaying and interacting with the user
C = connects the M and V and controls the flow
But do the differences there matter? So long as the application is correct, easily maintainable, and performs ok, it's not usually a big issue.
Exact definitions are less important than understanding how (e.g.) Django works, so if you're after a Python job then you should focus on learning & practising the skills that will help with that.
Your top post sounds sounds right for Django, yes.
Note that the reason these web frameworks were called "MVC" was largely to distinguish them from old-timey ASP, JSP and PHP, where you'd have all your code embedded in the HTML pages. Those HTML pages were sometimes called "server pages".
Note that the reason these web frameworks were called "MVC" was largely to distinguish them from old-timey ASP, JSP and PHP, where you'd have all your code embedded in the HTML pages. Those HTML pages were sometimes called "server pages".
My memory suggests MVC goes back to Smalltalk and the GoF and migrated into Enterprise Java where they created an administrative mess of job titles in an effort to remove any creativity form the hands of programmers and give management the sense that their projects won't lead them on the path to ruin. I'm not sure it worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.