~/talk

A deep dive into the Gilded Rose

Talkat C++ on Sea 2020 · 2020-07-15..07-17· [testing, c-and-cpp]
slides:none on file

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

  1. 0:00Introduction
  2. 0:40My story
  3. 2:58The Gilded Rose
  4. 10:07Approval Testing
  5. 16:55Refactoring
  6. 19:03Extracting variables
  7. 22:36What is a conjured item
  8. 28:50Generators
  9. 33:11Test doubles
  10. 36:49Test stubs
  11. 38:38Mocks
  12. 41:41Summary
~/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.