Gilded Rose Refactoring Kata
summary
Kotlin live refactor of the Gilded Rose kata shows an actual incremental pathway: use IntelliJ intentions and plugins to collapse and invert conditionals, extract functions, push mutation out of branches, and convert updates into pure expressions. The codebase moves toward a more functional shape while adding the "conjured" items feature and keeping tests green; weirdly the project reports 100% coverage yet requires mutation testing to trust it. Everything is on GitHub and the regression passes.
AI-written summary · about
chapters (18)
- 0:00Introduction to the challenge
- 1:28Understanding requirements
- 2:20Analyzing the test code
- 3:52Initial code improvements
- 5:32Code coverage and analysis
- 6:31Attempting risky refactoring
- 7:45Refactoring techniques
- 10:36Improving readability
- 12:33Field usage analysis
- 14:12Inverting conditionals
- 17:34Encapsulating mutation
- 21:22Adding the new feature
- 23:54Refining the design
- 27:33Implementing immutability
- 30:57Retro and design lessons
- 33:43IDE shortcuts and plugins
- 35:50AI in refactoring
- 38:23Conclusion and resources








