~/talk

TBC

Talkat BathRuby 2015 · on Friday, 2015-03-13· [ruby]
slides:none on file

Live coding shows refactoring an Invitations class that parses a CSV of name/email pairs, sends mail via a Mailer, and has a private recipients method moved into a new Parser class. Tests drive the work: unit specs for Parser, a component spec for Invitations, then stubbing Parser with a parser double (allow Parser.new to return the fake). Final step uses dependency injection to invert control by passing a Parser in instead of a CSV, simplifying tests and clarifying tradeoffs of this extract class refactor.

AI-written summary · about

  1. 0:00Talk overview
  2. 1:06Programming fundamentals
  3. 3:36Email invitation code example
  4. 5:23Single responsibility refactor
  5. 8:30Extracting CSV parser class
  6. 13:20Moving methods between classes
  7. 18:16Test doubles for collaborators
  8. 24:15Stubs and test smells
  9. 26:00Dependency injection
  10. 32:22Inversion of control trade-offs
  11. 34:07Closing takeaway
~/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.