Video

Want to see the full-length video right now for free?

Notes

Ben and Joe follow up on a previous episode on extracting classes to demonstrate the classic followup punch to Extract Class: Invert Control.

They show the previous example in the context of an integration-tested Rails application, and demonstrate live how to use dependency injection to invert control. They also walk through some of the pros, cons, and pitfalls of using dependency injection in this way.