What's Wrong With Ruby's Object Model (And Why That's a Good Thing)
summary
A messy procedural Ruby script that draws planner-sheet PDFs uses the Prawn gem, shells out to md5 for acceptance tests, and wraps File.open to allow stubbing; it ships and runs for two months. Refactoring extracts a Planner class into bin/lib, replaces magic numbers and manual loops with Ruby iterators, and collapses duplicated test setup; tests fail twice and reveal API regressions. Claim: Ruby’s pliability and fluidity enable incremental refactors, surprising discoveries, and workable DSLs without a full rewrite.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 0:50History of split brains
- 5:18The right side of the brain
- 10:23Formalism vs hermeneutics
- 13:19Refactoring
- 15:53Testing
- 18:30Ruby is pliable
- 20:38The old way
- 24:43The nasty stuff








