This episode covers how to write a "macro"-a method that generates or modifies other methods-using the classic example of memoizing method results.
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.
In today's episode we'll try to come to grips with a slippery quality---a quality which is of importance to differentiating code that is easy to evolve, from code that isn't. …
In this, the first of another ongoing occasional series, I revisit an open-source application I started three years ago and begin to rewrite it. Part 1 focuses on building a …