~/talk

All TheLittle Things

Talkat RailsClub Moscow 2014 · on Saturday, 2014-09-27· [ruby, software-architecture]
links:none on file
slides:none on file

A 43-line method full of conditionals becomes a suite of small objects by driving changes through tests: add characterization tests, extract tiny methods, introduce per-item classes with a factory and simple inheritance, and move behavior/config into a hash. Complexity metrics drop (from about 50 to 12 for the worst class), roughly a 75% complexity reduction, the example is the Gilded Rose kata, and every refactor stays green so the behavior keeps working. tests first, extract to objects.

AI-written summary · about

  1. 0:00Introduction
  2. 2:35Complex code problem
  3. 6:07High-complexity method analysis
  4. 15:24Refactoring via tests
  5. 23:57DRY and abstractions
  6. 30:20Open-closed principle
  7. 37:56Class hierarchy creation
  8. 44:03Refactoring results and conclusions
  9. 46:57Q&A
~/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.