Undervalued: The Most Useful Design Pattern
summary
Explains how value objects now get first-class support in Ruby and shows concrete examples of modeling money, IDs, and validation objects that reduce coupling and eliminate repetitive DB-heavy tests. Demonstrates replacing mocks with simple immutable objects to make tests faster and more maintainable, measures CPU and memory gains from avoiding ActiveRecord bloat, and combines value objects with the factory pattern to generate predictable, composable domain data that ships to production.
AI-written summary · about
chapters (5)
- 0:00Introduction to design patterns
- 5:00Why most patterns are overlooked
- 12:28The overlooked pattern explained
- 20:47Real-world applications
- 27:57Summary and key takeaways
related talks
11mThe Value of Objects -
31mWhat Comes After MVC
47mSpring, Hibernate, the Value Object Pattern and the Limits of Its Use
45mBeyond design patterns and principles - writing good OO code
32mDemystifying Design Patterns: A Practical Guide for Developers
29mSingle Value Objects: where DDD and Functional Programming Share Forces
32mruby best practice patterns
42mHigh-Speed DDD (revisited)
