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 …
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.
Sometimes we'd like to treat Ruby arrays like sets, in which each item is unique. Today's dish shows how!
Today, special guest chef James Edward Gray II hosts, and shows us a thing or two about generating arrays pre-filled with values!
Sooner or later you'll need to generate statistics from a collection. In this episode, we look at how to produce min, max, sum, average, median, and standard deviation from a …
Today's episode takes on a simple task--summing up a list of numbers--and uses it to demonstrate both the Enumerable#reduce method as well as Symbol#to_proc.
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.