~/talk

TBC

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

Live-coding refactors a Ruby Invitations class that parses a CSV and sends mail, using Vim and RSpec to keep tests fast and green. The talk shows extracting a Parser class via TDD, moving the recipients method, replacing CSV parsing with a parser double to simplify specs, and updating the controller to construct the parser so lower classes stop calling new. Key moves: extract class, stub collaborator, invert control (dependency injection), which reduces test brittleness and works—tests remain green.

AI-written summary · about

  1. 0:00Welcome
  2. 1:51Live coding setup
  3. 4:03Initial code feedback
  4. 6:07Extract class refactoring
  5. 8:13Parser class and tests
  6. 10:41Moving recipients method
  7. 12:04Driving parser behavior
  8. 15:37Implementing parser class
  9. 17:46Using parser in invitations
  10. 19:55Cleaning invitations class
  11. 21:17Isolating invitations
  12. 24:26Benefits of stubbing
  13. 26:10Introducing inversion of control
  14. 28:53Refactoring tests for IoC
  15. 31:03Final IoC refactoring
  16. 32:27Pros and cons of IoC
  17. 34:11Summary
~/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.