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








