When debugging a tricky problem, don't you sometimes wish you could just drop a line of debugging code right in the middle of a third-party gem? This episode shows how …
Episode #166: Not Implemented
Ruby doesn't have a built-in concept of "abstract" classes, but sometimes we want a way to show other programmers when methods are left as an exercise for the implementor. This …
Episode #165: Refactor Tapas::Queue
In previous episodes, we got the Tapas::Queue class under test, using a couple of different thread-testing techniques. Now that it has tests, it's time to refactor. The steps of this …
Episode #164: Mapper
Today we explore a pattern for bridging the gap between different domain models.
Episode #163: YAML::Store
Today we follow up on the last episode to talk about YAML::Store. It's like PStore, only with YAML!
Episode #162: PStore
In today's episode we take a look at PStore, a simple but capable persistence mechanism that ships with Ruby.
Episode #161: Thread Local Variable
Today's episode introduces the concept of thread-local variables, and shows how they can be put to use in an ActiveRecord-like library.
Episode #160: Reduce Redux
Today we revisit the Enumerable#reduce method, addressing some viewer feedback about seed values as well as exploring a novel application of reduce for traversing data structures.
Episode #159: Array Set Operations
Sometimes we'd like to treat Ruby arrays like sets, in which each item is unique. Today's dish shows how!