Solution: The Model Has an Active Record

Controllers handle application input and views handle application output, both relatively simple and well-defined tasks. Frameworks are best at helping you put these together quickly. But it’s hard for a framework to provide a one-size-fits-all solution for models, because models comprise the rest of the object-oriented design for your application.

This is where you actually need to think hard about what the objects are in your application and what data and behavior those objects have. Remember Robert L. Glass’s estimate that the majority of software development is intellectual and creative?

Grasping the Model

Fortunately, there’s a lot of wisdom in the field of object-oriented design to guide you. ...

Get SQL Antipatterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.