SOLID 101: A Review for Rubyists
summary
Quick practical review of SOLID for Ruby: shows small Ruby examples (kickball Player/Team), points out avoid AR fat models and how formatting leaks responsibilities, demonstrates a concrete refactor by extract formatter into a RosterPrinter and then inject printer so tests stop breaking when output changes, uses subclassing to honor Open/Closed, flags a Liskov bug where subclasses return inconsistent types (string vs hash), and argues these moves make code more testable, less brittle, and easier to extend.
AI-written summary · about
chapters (6)
- 0:00Introduction and context
- 2:04Philosophy of design
- 7:07Defining objects
- 10:14The SOLID principles
- 23:22Applying principles effectively
- 27:00Iterative engineering








