In this episode we're going to be featuring some content from RubyTapas. Avdi walks us through how to use Ruby's catch and throw methods as a replacement for using exceptions as flow-control with a refactoring example from the Discourse codebase. The refactored code proves to be simpler, more concise, and less obtrusive.
Avdi is the creator of RubyTapas, a twice-weekly screencast series covering a wide variety of intermediate to advanced Ruby concepts and techniques, as well as core Object-Oriented design principles.
You need to be an enrolled student in order to view this video and subscribe.Enroll Now