Keynote: Refactoring Humpty Dumpty back together again
summary
Explains how a decade‑old MongoDB Ruby stack gets repaired by studying the code, adding tests and benchmarks, and refactoring one bloated metadata object into reference and embedded namespaces that encapsulate behavior. Work brings driver and query DSL back into the repo, creates a new 2.0 driver, and closes ~40 issues (about 50% of 199). Uses JIRA/GitHub triage, pry for tracing, and benchmarking; adds ~1000 tests so test time grows but runtime performance slightly improves and maintenance becomes easier — project is restored and healthier.
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
related talks
01h 19mKeynote: I Can Write the Code But Getting Something Done Is Another Matter
45mRefactoring Graphite to Diamond
01h 00mClosing Keynote: After a Decade, Still a Rubyist
34mSustainable Architecture
45mKeynote: One Monolith, Many Teams: Growing an Org...
29mKeynote: BDD - Bias driven development
01h 01mCan We Still Innovate?
47mDomain driven redesign
