A deep dive into the Gilded Rose
summary
Walks through taking the Gilded Rose kata from untrusted legacy code to a working change: adds conjured items that degrade quality twice as fast by detecting names via an 8‑char prefix, fixes the odd‑number decrement bug, and updates the golden master. Uses Approval Tests with Catch2, precompiled headers to cut debug compile from 2.2s to 1.4s, verifies 100% line coverage with Bullseye, munges timestamps in logs, exercises generators in Catch2 for property‑style tests and uses Trompeloeil mocks and simple stubs to test logging without file IO.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:40My story
- 2:58The Gilded Rose
- 10:07Approval Testing
- 16:55Refactoring
- 19:03Extracting variables
- 22:36What is a conjured item
- 28:50Generators
- 33:11Test doubles
- 36:49Test stubs
- 38:38Mocks
- 41:41Summary
related talks
31mGilding the Rose: Refactoring Legacy Code
01h 25mGetting a Handle on Legacy Code
43mFrom 0% to Cleanly Refactored 100% tested code
01h 44mTUTORIAL: Refactoring without a net
35mRefactoring Frenzy - Don't settle for short term
39mAll the Little Things
22mWriting tests when the code is already there: Golden Master technique
50mHello my name is "if"
