~/talk

Succession

Talkat RailsConf 2016 · 2016-05-04..05-06· [ruby, testing]
slides:none on file

An end-to-end refactoring of a hard‑coded Ruby here‑doc becomes a concrete recipe: add a simple test, introduce a parallel implementation, isolate algorithmic pieces with case statements then extract a critter object and tiny Verse/Song classes, swap in the new code and watch tests pass. The process uses Ruby string formats, Enumerable#each_cons, incremental commits on GitHub and exercism.io for practice; the test suite even catches a surprising bug (wrong indefinite article) before feature work for jungle/ocean critters proceeds.

AI-written summary · about

  1. 0:00Intro
  2. 1:58Edge cases
  3. 4:38spurious refactoring
  4. 6:17indirection
  5. 9:25duplication
  6. 12:50conditionals
  7. 18:09critter
  8. 25:36first class
  9. 29:14refactor
  10. 33:17shim
  11. 34:53simplicity for flexibility
  12. 36:48Kent Beck
~/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.