Tag: mvc
-
Symfony 2: Why You Should Move Your Logic into a Service
In typical MVC applications, people end up storing business logic into either the controller or the model layer. The problem in this approach is that in either case, you introduce code bloat and dependencies that should not really exist. Controllers, which are essentially the observer pattern, act as a traffic light, taking requests and directing…
-
Domain Modeling: Why Most Architectures Suck at this Level
Ever notice that when you go to a company that supposedly uses an MVC structure, there’s an inevitable problem when it comes to controllers and models? Most people won’t fuck up the view section since even the lamest front end programmers know how to separate html from business logic. However, even seasoned backend developers tend…
-
The Zend Framework: Problems with Controllers, Models and Domain Modeling
In talking with an ex-colleague, I realized that there’s a lot of confusion that takes place in these so-called MVC frameworks. What I’ve noticed is that many have different interpretations of what the Model-View-Controller looks like (typically only getting the view portion correct in implementation). Most controversy in architecture revolves around the Model and the…