In this episode we take some already-good code and make it even better.
We continue to evolve our thread-safe queue implementation. Today, we add the ability to set a bound on the queue size.
Continuing to build our own thread-safe queue class, today we give it the ability to handle time out enqueues and dequeues.
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.
Today's episode introduces the Queue standard library, and shows how it can be used to coordinate threads.
Ruby supports a limited form of destructuring assignment, in the form of the "splat" operator. In today's episode we go over splat basics, in order to lay a foundation for …
There is more than one way to concatenate arrays, but not all ways are created equal. In this episode we'll compare three approaches in terms of both semantics and efficiency.
We've figured out how to read chunks of text backwards from a file, now it's time to tackle searching that text for the beginnings of lines.
A number of Ruby standard library methods return an Enumerator if no block is passed to them. In this episode, we'll learn how to emulate this behavior in our own …