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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access