~/talk

Gilded Rose Refactoring Kata

Talkat KotlinConf 2023 · 2023-04-12..04-14· [kotlin]
slides:none on file

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

  1. 0:00Introduction to the challenge
  2. 1:28Understanding requirements
  3. 2:20Analyzing the test code
  4. 3:52Initial code improvements
  5. 5:32Code coverage and analysis
  6. 6:31Attempting risky refactoring
  7. 7:45Refactoring techniques
  8. 10:36Improving readability
  9. 12:33Field usage analysis
  10. 14:12Inverting conditionals
  11. 17:34Encapsulating mutation
  12. 21:22Adding the new feature
  13. 23:54Refining the design
  14. 27:33Implementing immutability
  15. 30:57Retro and design lessons
  16. 33:43IDE shortcuts and plugins
  17. 35:50AI in refactoring
  18. 38:23Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.