~/talk

Therapeutic Refactoring

Talkat Cascadia Ruby 2012 · 2012-08-03..08-04· [developer-experience]
slides:none on file

A 300‑line module with one huge method, no tests, running on a Cron job and manipulating temp files, FTP and EXIF data for JPEGs gets safety and clarity by adding characterization tests that capture real inputs and outputs, then applying replace method with method object and many small extractions (about 30 steps shown in a GitHub commit history). The refactor removes code junk, converts string-smushing to joined pieces, preserves behavior under tests, and produces fast, isolatable feedback that prevents panic.

AI-written summary · about

  1. 0:00Intro
  2. 2:14Dirty Hacks
  3. 5:13Testing
  4. 17:49Code Junk
  5. 22:26Working Memory
~/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.