News for hackers. Stuff that matters.
Re:Is Model-View-Controller dead on the front end? by lcarlson on Friday November 11, 2016 @09:17AM (#12930780)
On the contrary, I find that people stuff too much on the model because of rails. I've found that I much prefer very simple models to describe very fine grained parts of the data and use the controller for much of the tying of things together. You kinda of treat models as 'data components' if you will, mixing and matching them where needed in the view
Re:Is Model-View-Controller dead on the front end? by mpweiher on Friday November 11, 2016 @12:54PM (#12932737)
That's the "Massive ViewController" anti-pattern (or just massive controller, if you're not in Apple land).

Classic MVC is really MVc, with controllers only handling a small set of interactions that are not directly between the Model and View, for example dialog boxes and such.

One problem with a "Big-C" approach to MVC is that whereas models and views are at least potentially reusable, the controllers are dependent on both M and V, and thus both proliferate and are not reusable.

Glue code. The dark matter of programming.

Re:Is Model-View-Controller dead on the front end? by lcarlson on Saturday November 12, 2016 @06:48PM (#12940896)
Hmm, often times the models are not reusable because they end up doing too much. Tryg actually started to create something called ACI because of this.