You know there are some programming language features you're just not supposed to use: `goto`. Global variables. The greater-than operator. Wait, the greater-than operator?! Find out why, in this guest …
Tag: boolean

Why Ruby doesn’t have a Boolean class
One peculiarity of Ruby that trips up a lot of programmers migrating from other languages is the fact that while it has true and false types, they don’t share a …

Episode #295: 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 programmers by surprise.

Episode #294: Predicate Return Value Part 1
Predicates return booleans, right? Not always, as it turns out. Part 1 of 2.

Episode #268: Complex Predicate
Today we'll refactor some real-world business logic for clarity and ease of debugging.

Episode #125: 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 assumption can get …

Episode #094: 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 think; as well as how …