Sometimes a utility module is overkill. In this episode, we make a namespace module do double-duty.
Some functions are useful in many different contexts. In this episode we'll explore some ways to make them available both to library code and to client code of a library.
In part 2 of this series, we buy ourselves some peace of mind with a simple smoke test. The code for this episode can be found here: https://github.com/avdi/pulse-ffi/tree/RubyTapas047
In Part 2 of this series chronicling the creation of an app, I establish a test-driven rhythm, starting with a high-level acceptance test. The source code for this episode is …
This cautionary episode demonstrates and explains a Hash gotcha that often comes as a surprise.
Somtetimes you need to know if exactly one element in a collection has a given property. For that situation, we have the #one? predicate method.
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.
Does code optimized for RAM usage need to be ugly? Find out, in today's episode!
Today's episode looks at a convenient tool for weeding through text and pulling out parts that match a given pattern.