~/talk

Getting a Handle on Legacy Code

Talkat RailsConf 2015 · 2015-04-21..04-23· [ruby-on-rails, testing]
slides:none on file

Starts with the Gilded Rose kata, adds support for conjured items that must degrade quality twice as fast, and proves it with focused specs plus Golden‑Master checks using the approvals gem. Uses SimpleCov to drive tests to 100% line coverage briefly, runs flog to show complexity falling (update_quality ~155 → ~45), extracts methods (update_item, increase/decrease_quality), and commits baby‑step refactors. The feature is implemented and tests pass, leaving the code measurably cleaner and the behavior verified.

AI-written summary · about

  1. 0:00Start
  2. 0:13Workshop Setup
  3. 2:59The Spec: Can We Trust It?
  4. 4:19Workshop Structure
  5. 6:45The Legacy Code Algorithm
  6. 8:51Mob Programming Exercise
  7. 17:44Golden Master Testing
  8. 35:54Cleaning Up the Code
~/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.