Queue, somewhat surprisingly, is not enumerable. Which is all the excuse we need to have some more fun with the Enumerator class, in today's episode.
Search results for: episode 33
616 results found.
Episode #116: Extract Command Object
In today's live-recorded episode I show one of the most fundamental refactorings for breaking up a large class into smaller classes. Since this is a live episode there is no …
Episode #067: Moneta
In the last episode we gave a class the ability to cache HTTP responses in a Hash or something that behaves like a Hash. Now we'll introduce the Moneta gem, …
Episode #060: Ascend
Now that we've been formally introduced to the Enumerator class, it's time to apply that knowledge in a concrete way. In this episode we use Pathname and Enumerator to locate …
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 #019: Pluggable Selector
In today's episode, we revisit episode 11 (Method and Message), and take a look at a way to make the coupling between objects even looser, by making the name of …
Episode #496: Deep Freeze
Freezing a Ruby object can leave you skating on thin ice. Learn how to render complex Ruby objects totally immutable.
Episode #499: Subprocesses Part 11: Fork
If you're making subprocesses on a UNIX-like OS, you're using fork(). Learn all about using fork() from Ruby.