Invert Control

The Weekly Iteration

This video is only a short sample, but you can access the full version and all our other great content by subscribing.

Video

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.

×

15 Full Courses, 100+ Screencasts & New Content Weekly