~/talk

First Do No Harm: Surgical Refactoring

Talkat Full Stack Fest 2015 · 2015-09-01..09-05· [developer-experience]
links:none on file
slides:none on file

A clear method for changing living legacy code: diagnose with preop/operation/recovery stages, add RSpec specs to cover and modify behavior, and extract and test the sed command and its Ruby regex character by character. Example refactor converts old Ruby hash syntax to 1.9 form by writing real files, verifying before‑and‑after contents, hitting a failing test when a regex change breaks sed, reverting to keep behavior safe, and treating production rollbacks and risk tolerance as developer responsibility.

AI-written summary · about

  1. 0:00Start
  2. 0:29Benefits to Refactoring
  3. 1:30Is Refactoring Bad
  4. 1:47Approaches to Refactoring
  5. 2:40Surgical Refactoring
  6. 7:10Pre-Op
  7. 7:44Example of Surgical Refactoring
  8. 12:50Error Message
  9. 21:03Capture Group
  10. 29:51Recovery
  11. 30:26Qa
  12. 31:38Evaluate the Risk of another Change
~/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.