3 ms·
I've yet to find two proponents of "true" MVC who can agree what goes in the model and what goes in the controller.
by Marazan 4y ago
I've yet to find two proponents of "true" MVC who can agree what goes in the model and what goes in the controller.
- mpweiher 4y ago1. https://folk.universitetetioslo.no/trygver/themes/mvc/mvc-index.html https://folk.universitetetioslo.no/trygver/themes/mvc/mvc-in... 2. Controllers, like views and model(s) are roles, not components. These roles can be filled by the same objects. 3. So people not agreeing where things go is perfectly compatible with MVC, and thinking that's a problem is a symptom of not understanding MVC. 4. I personally try to put as much as possible (and a bit more) into the model. Hexagonal for the win! Naked objects are also pretty nice, though I tend not to be quite that radical. ¯\_(ツ)_/¯
- Marazan 4y agoIf the M the V and the C are roles with not fixed functionality or purpose (given that you apparently can put anything you want in them) then what _is_ MVC?
- mpweiher 4y agoThe roles are distinct and have fixed functionality and purpose. They just don't have to correspond to specific and distinct components. This is all explained in detail in the documentation, which is really helpful for understanding MVC.