Don’t Use Greater-Than

You know there are some programming language features you're just not supposed to use: `goto`. Global variables. The greater-than operator. Wait, the …

Predicate Return Value Part 2

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 pro…

Complex Predicate

Today we'll refactor some real-world business logic for clarity and ease of debugging.

And/Or

Ruby has both symbolic and English forms of the logical "and" and "or" operators. Which one to choose may seem like a matter of taste, but that assump…

Bang Bang

Have you ever found yourself looking for a '#to_bool' method in Ruby? This episode explores why boolean conversion isn't needed as often as you might …

Boolean

A common question on Ruby forums and mailing lists is: "why is there no Boolean data type?". This episode attempts to answer that question.

Exclusive Or

This episode looks at Ruby's logical XOR operator, and how it can be useful in checking that a method was called with the correct optional arguments.