In the second of two episodes about predicate return values, we look at some of the subtle ways that non-boolean predicate return values can catch programmers by surprise.
In this episode we discover a trick that can enable us to easily pack up messages with their arguments and pass them around.
Today we'll refactor some real-world business logic for clarity and ease of debugging.
Today we'll look at two different ways to memoize a complex method, and talk about why I prefer one over the other.
In this episode we look at how to convert our Feet objects back to core numeric types. In the process, we gain the ability to use our Feet objects in …
In this episode we create a function for converting arbitrary values into Feet objects.
Newer arrivals to Ruby sometimes wonder when to use #each, and when to use 'for'. Today, a detailed explanation of how they differ, and an opinion on when to use …
Ruby doesn't have a built-in concept of "abstract" classes, but sometimes we want a way to show other programmers when methods are left as an exercise for the implementor. This …
Some techniques for making boolean flag arguments read more meaningfully.
Nobody wants to debug an "undefined method for NilClass" error. Today's episode shows a little trick for making these errors more meaningful.