~/talk

"One Small Step"

Talkat RubyC 2019 · 2019-09-14..09-15· [ruby-on-rails]
slides:none on file

Starts from a working here‑doc that generates a children’s song and performs an end‑to‑end refactor using small, safe steps: add a characterization test that asserts current output, split the here‑doc into per‑verse methods, separate template and data with C‑style formatting, extract a Critter object (fixing primitive obsession), replace the 1..8 range with a length from an injected eight creatures array, add a tiny contrived test for edge cases and fix an article bug — tests stay green throughout.

AI-written summary · about

  1. 0:00The refactoring struggle
  2. 2:13Defining the problem
  3. 5:09Preparation and testing
  4. 8:02Dissecting the structure
  5. 10:25Naming and revealing logic
  6. 14:12Safety through undoing
  7. 17:13Conditional symmetry
  8. 21:11The object-oriented pivot
  9. 23:06Handling hard-coded data
  10. 25:02Generalizing the algorithm
  11. 29:10Refactoring as a process
~/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.