~/talk

Gilded Rose Refactoring Kata

Talkat DevFest Berlin 2023 · on Saturday, 2023-11-25· [kotlin, developer-experience]
slides:none on file

Refactors the Gilded Rose Kotlin kata using Kotlin and IntelliJ intentions and plugins, keeping tests green and doing tiny commits; project starts as four files and two tests, runs a 0–100 day regression printout, and shows 100% coverage but catches issues with mutation testing. Extracts and flattens nested ifs, lifts shared updates into one updateQuality function, converts mutations toward copies, and successfully adds conjured items degrade twice as fast with the regression updated and passing.

AI-written summary · about

  1. 0:00Introduction to refactoring
  2. 1:26Setting up the project
  3. 3:09Understanding the requirements
  4. 6:40Analyzing code coverage
  5. 9:10Refactoring approach and heuristics
  6. 12:23Condensing and simplifying code
  7. 13:49Inverting conditions and splitting logic
  8. 17:20Flattening nested conditions
  9. 19:05Encapsulating quality updates
  10. 21:35Lifting function calls out of expressions
  11. 22:57Adding the Conjured item
  12. 24:47Reordering sell-in updates
  13. 26:55Refactoring in tiny safe steps
  14. 28:01Making code more functional
  15. 30:10Retrospective of the refactoring
  16. 31:56Refactoring shortcuts and tools
  17. 33:00Why refactor in the first place
  18. 35:30Closing and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.