Keynote: Refactoring Humpty Dumpty back together again
summary
Recounts taking an aging Ruby MongoDB stack (Mongoid, origin and the older 1.x driver) through structural analysis, tests and incremental refactors, importing GitHub issues into JIRA, using pry to trace call stacks, and creating a new 2.0 driver and merged origin into the codebase. Focus targets a bloated metadata hash refactored into explicit namespaces, split Metadata into Reference/Embedded objects, producing new tests and benchmarks and closing about 40 issues (~50% of 199) to improve stability and maintainability.
AI-written summary · about
chapters (20)
- 0:00Intro
- 4:19Humpty Dumpty Poem (v2)
- 4:42"Humpty Dumpty" ?
- 5:44Tortoise Seige Engine
- 6:412nd Law of Thermodynamics
- 10:41Modeling the Cathedral
- 12:47Beauvais Cathedral supports
- 16:27Mongoid history
- 20:17Current Mongoid
- 20:50199 issues
- 21:44Restoring Mongoid
- 24:59Mongoid structural analysis
- 29:55Mongoid relation types
- 30:35Metadata instance method
- 35:44Refactoring Healthy Habits
- 36:01Refactor one piece at a time
- 37:42Use existing tests at every step
- 38:29Don't fix bugs
- 41:04Responsible maintenance
- 44:15Measuring Entropy








