All the Little Things
summary
Code starts as a 43-line conditional around Gilded Rose and a tick method that Flogs 45 and the class Flogs 50; tests guide refactoring into seams, then many small steps that briefly raise complexity but let tests stay green. The code becomes an item factory (Gilded Rose module), four item classes with tick, and a config hash; Backstage Flogs ~12 and average class Flog ~7, a ~75% complexity drop. seams and characterization tests make Conjured trivial to add and small, focused objects replace the sprawling ifs.
AI-written summary · about
chapters (14)
- 0:00Start
- 1:32The Gilded Rose Kata
- 8:11the pattern failed me
- 17:47small methods are simple
- 22:31they're screaming to get out
- 25:03backstage
- 25:51abstract away the duplication
- 27:05item is a role
- 29:11extract common code
- 29:37inheritance is not evil
- 32:34extract configuration
- 33:08small objects
- 37:06refactor through complexity
- 37:55love your code








