▲ | mpweiher 3 days ago | ||||||||||||||||
Hmmm...the problems you recount are exactly the problems of putting (way too much) logic into the controller...and not enough logic into the model...which is exactly what MVC recommends you not do, and which is exactly what I criticized about your approach...and which is exactly the critique you seem unwilling to accept. ¯\_(ツ)_/¯ What gives? Put all the logic in the model. If you want authentication, put that in an "authenticated model" that wraps your model. Don't put it in the controller. > Controller controls the boundary between the system and the user. Nope. That is Apple-MVC. Aka Massive-View-Controller. It is not MVC. The model API is the boundary between the model and the rest of the system. https://blog.metaobject.com/2015/04/model-widget-controller-... | |||||||||||||||||
▲ | sunir 3 days ago | parent [-] | ||||||||||||||||
The controller is meant to be handling things like keyboard events or http events. That’s the boundary to the user. The thinner the better. I don’t know why you think this is a combative conversation where I need will to accept or reject anything. I lack understanding of how you would solve the same problem. Throwing chaffe is not communication. It creates a second problem beyond the one we are discussing. How does the model handle authentication without having to become aware of boundary protocols? How the user authenticates is part of the input to the system. Eg http basic or oauth I don’t know how you handle routing. Do you put that in the model as well? | |||||||||||||||||
|