February 2010
Beginner
400 pages
11h 13m
English
When you start writing real-world MVC applications, you will probably find you have a number of questions about the best way to design your applications (which is somewhat ironic given that MVC stresses convention over configuration).
When dealing with design decision, it can help to keep the following ideals in mind:
Aim for a thin controller and fat model—the controller is just responsible for interacting with the view and model and should never contain any logic! OK, I haven't been that strict in this chapter, but you should because it will make your applications much easier to test.
Consider whether your application could be easily split or load-balanced across a number of servers easily. If it can, the chances are good ...