~/talk

All the Little Things

Talkat RailsConf 2014 · 2014-04-22..04-25· [testing, developer-experience]
slides:none on file

Code starts as a 43-line conditional around Gilded Rose and a tick method that Flogs 45 and the class Flogs 50; tests guide refactoring into seams, then many small steps that briefly raise complexity but let tests stay green. The code becomes an item factory (Gilded Rose module), four item classes with tick, and a config hash; Backstage Flogs ~12 and average class Flog ~7, a ~75% complexity drop. seams and characterization tests make Conjured trivial to add and small, focused objects replace the sprawling ifs.

AI-written summary · about

  1. 0:00Start
  2. 1:32The Gilded Rose Kata
  3. 8:11the pattern failed me
  4. 17:47small methods are simple
  5. 22:31they're screaming to get out
  6. 25:03backstage
  7. 25:51abstract away the duplication
  8. 27:05item is a role
  9. 29:11extract common code
  10. 29:37inheritance is not evil
  11. 32:34extract configuration
  12. 33:08small objects
  13. 37:06refactor through complexity
  14. 37:55love your code
~/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.