~/talk

One Small Step

Talkat Codemotion Berlin 2019 · 2019-11-12..11-13· [developer-experience]
slides:none on file

Ruby code that generates a children’s song gets refactored end-to-end: a characterization test captures existing output, the lyrics are split into verses, string templates separate data from algorithm, primitive obsession is fixed by introducing a critter object with name, qualifier and aside, and the data becomes injectable. Tiny, safe steps keep tests green; a tiny contrived test catches an a/an bug, gets fixed, and the new flexible generator works and supports arbitrary creature lists.

AI-written summary · about

  1. 0:00Introduction to refactoring
  2. 1:53Why refactor code
  3. 5:28Starting the refactoring process
  4. 8:18Breaking down verses
  5. 12:53Separating algorithm from data
  6. 16:46Handling conditionals in refactoring
  7. 20:36Introducing the critter object
  8. 23:01Removing hard-coded constants
  9. 25:50Fixing verse assumptions
  10. 27:36Final adjustments and testing
  11. 28:41Key takeaway small steps
~/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.