My question is about the ideal or original interpretation of MVC http://heim.ifi.uio.no/~trygver/themes/mvc/mvc-index.html
As the goal of MVC is to reduce dependencies, should View know the model? Then what would prevent it from becoming fat and calling directly the methods of the model without a controller request?
Update: as I read below, I will take a specific example:
Let's say you create a complex calculator (and not just a simple one, let them say the pricer option for the stock market). This requires only input, such as stock price, interest rate, volatility. So, why should I create a link to the entire model that contains the methods from the view, since I only need these input variables?
Why won't the controller just be notified when something changes in the view, and then only call the method in the view with input?
For example, here I see that the view has a link to the entire model:
http://leepoint.net/notes-java/GUI/structure/40mvc.html
private CalcModel m_model;
language-agnostic design-patterns model-view-controller
user310291
source share