Doctrine of Useful Objects: Separate Fact from Fiction in OOD
summary
Argues that object design must manage change: models should not become fat domain controllers and Rails’ “fat model, skinny controller” is measurable and harmful. Presents a practical pattern: objects initialize with primitives, default dependencies use a mimic null-object substitute that records telemetry, and production constructors wire real clients. Shows small Ruby libraries named dependency and dependency+telemetry to avoid mocks, reduce test setup, and keep business logic in lib/app_data instead of framework models.
AI-written summary · about
chapters (9)
- 0:00Introduction and speaker intro
- 3:14Object orientation fundamentals
- 8:52Coupling dimensions and quadrants
- 14:37Fat model skinny controller critique
- 18:30Doctrine of useful objects explained
- 22:43Code example and design principles
- 37:53Primitive initializers and convenience interfaces
- 42:09Rails integration and model separation
- 46:53Q&A and closing remarks
