Sometimes a utility module is overkill. In this episode, we make a namespace module do double-duty.
Episode #049: Utility Function
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.
Episode #047: FFI Part 2: Smoke Test One
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
Episode #046: Gem Love Part 2
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 …
Episode #045: Hash Default Value
This cautionary episode demonstrates and explains a Hash gotcha that often comes as a surprise.
Episode #044: #one?
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.
Episode #043: 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.
Episode #042: Streaming
Does code optimized for RAM usage need to be ugly? Find out, in today's episode!