O'Reilly logo

SQL Antipatterns by Bill Karwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required