Nothing is Something
summary
Claims that conditionals are a code smell and that objects should answer messages, not be inspected; demonstrates with Ruby by monkey‑patching true/false to replace if, implementing a Null Object to eliminate scattered nil checks, and refactoring a cumulative “house that Jack built” example into injectable roles (orderer, formatter) using dependency injection and composition. Shows inheritance causes duplication for combined features (random + echo) while the composed solution composes cleanly and works.
AI-written summary · about
chapters (8)
- 0:00Introduction and background
- 3:20Smalltalk influence on objects
- 8:40Conditionals vs message sending
- 12:34Nil checks and null objects
- 21:02Inheritance pitfalls and alternatives
- 31:18Finding abstractions through roles
- 40:21Practical takeaways and summary
- 43:55Conclusion and Q&A








