4 ms·
Maybe I'm doing it wrong, but I've always thought Controllers were supposed to be dumb and Models were supposed to be smart. That is, a model encompasses extra
by drivingmenuts 14y ago
Maybe I'm doing it wrong, but I've always thought Controllers were supposed to be dumb and Models were supposed to be smart.
That is, a model encompasses extracting the knowledge and turning into something that the controller passes to a view or another model, but is not processed much (if any) during the transfer. At most, it might be combined with data from other models into an uber-record that is passed to the view.
- Ygg2 14y agoYes ideally, controllers don't do anything than react to events, change model and update the view. In practice Controllers can get quite fat. It's a bit like Thin client/Thick Client in Client/Server environment.