Nobody wants to debug an "undefined method for NilClass" error. Today's episode shows a little trick for making these errors more meaningful.
Month: June 2013
Episode #110: Catch And Throw
A refactoring episode, showing how to replace exceptions-as-flow-control with the "catch" and "throw" methods.
Episode #109: SAX
This episode takes a look at how to use the Nokogiri gem to extract data from large HTML documents without reading the whole document into memory.
Episode #108: The Trouble With Nil
This episode explores some of the many ways we can come across a nil value, and why that's a problem.
Episode #107: String Subscript Assignment
In today's episode, we learn a wonderfully convenient way to substitute text.
Episode #106: Class Accessors
Today, some thoughts on writing class-level attribute accessors.
Episode #105: Checking for a Terminal
In this episode we'll mimic the behavior of command-line tools like Git that automatically page their output if they detect that they are being run from a terminal.
Episode #104: Parsing Time
It would be great if time were always represented in readable, un-ambiguous ISO8601 formats. But when importing legacy data we don't often have that luxury. In this episode, we look …