Answer the question
In order to leave comments, you need to log in
How to implement MVC and MVP correctly?
Hello everyone, I started learning about MV* patterns and got a little confused that some implement MVC so that the controller shares the relationship between View and Model. That is, the Model does not update the View, although the wiki and other sources say that in MVC - the Controller processes the input, transmits the Model changes, and the Model, in turn, changes the View, that is, the View is the output.
But reading articles where a specific implementation of MVC in Javascript, everything happens a little differently:
1) https://www.taniarascia.com/javascript-mvc-todo-app/
2) https://habr.com/ru/company/ruvds/ blog/333856/
The model never touches the view. The view never touches the model. The controller connects them.
Answer the question
In order to leave comments, you need to log in
You correctly understood that in MVC the controller is not a link between View and Model, what is called MVC on the web is actually MVA - https://en.wikipedia.org/wiki/Model%E2%80%93view%E ... .
MVC is one of those terms that a lot of people talk about but that almost no one understands, alas. In the articles cited from Habr, concepts are simply replaced
. Right there on the toaster, from the old one, I advise a couple of suitable descriptions - one and two . Basically everything you need to know right now.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question