~/talk

All The Little Things

Talkat Ruby on Ales 2014 · 2014-03-06..03-07· [software-architecture]
slides:none on file

Uses the Gilded Rose kata and test suite to show concrete refactorings: runs Flog to measure complexity (original class Flog ~250, tick ~245), applies a squint test, creates a seam to trap behavior, extracts one-class-per-item objects, turns the name-to-class mapping into configuration, and implements the missing "conjured" tests. Intermediate steps spike complexity but final code reduces average Flog by about 75% and all tests pass, producing small interchangeable objects that are easier to reason about and extend.

AI-written summary · about

  1. 0:00Introduction
  2. 1:37The problem of complex code
  3. 4:20Measuring code complexity
  4. 7:08The squint test method
  5. 8:39Testing legacy code
  6. 12:35Refactoring for clarity
  7. 17:01Replacing conditionals
  8. 20:03Creating small objects
  9. 23:34Extracting item behavior
  10. 25:51Implementing the factory
  11. 29:16Inheritance vs composition
  12. 32:57Final refactoring results
  13. 35:05Key design principles
  14. 37:26Conclusion and tribute
~/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.