Explaining MVC for dumb dumbs (like me)
How I understand the MVC architecture from a mostly JavaScript developer point of view.
How I understand the MVC architecture from a mostly JavaScript developer point of view.
Programming is hard, building complex applications is really hard and building complex applications that can scale and stay resilient, easy to update and work with is really why programmers are so important. The MVC (Model. View. Controller) architecture is a software architecture pattern that breaks up any application into 3 separate but more manageable parts; the Model, the View and the Controller.
PS: I use very obscure but visual examples in a lot of my writing because I am very stupid and very visual examples help me learn gud.
To explain MVC, Imagine a book library where you could request any book or story and get a private improv theater show produced for you telling you the story or about the book. Imagine you walking into this library and being assisted by a host/hostess who’s only job is to be personable and be your guide (but one who knows nothing about the show or library books).
Lets say you request a show on Hamlet, the host/hostess would first have to go to the librarians with your request (because they are not allowed anywhere near the books) then after getting the book (in this case hamlet) they would then give it to the theater department and lead you to the theater where you would get to see the improv show.
I hope that made sense to some degree but to put it in a more conventional context, applying MVC to any project is a separation of concerns convention where:
Hope that my explanation helps in explaining what the M, the V and the C in the MVC software architectural pattern.