Another little episode about thinking positive.
A little episode about thinking positive.
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.
Predicates return booleans, right? Not always, as it turns out. Part 1 of 2.
Today we'll refactor some real-world business logic for clarity and ease of debugging.
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 …
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 …
A common question on Ruby forums and mailing lists is: "why is there no Boolean data type?". This episode attempts to answer that question.
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.