Guides to the core and standard libraries, as well as selected Rubygems.
Category: APIs and Libraries
Episode #152: Progress Bar
Today we look at a gem that can make command-line scripts more pleasant to use.
Episode #151: Sleep
Today's episode tackles a subject I've always wondered about: how accurate is Kernel#sleep?
Episode #150: Stats
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 …
Episode #149: Sum
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.
Episode #146: Monitor
Today we learn about the concept of a "recursive mutex" as we help a turtle-racing league update their software systems.
Episode #144: Bulk Generation
In this episode we take some already-good code and make it even better.
Episode #142: Infinity
In today's episode, we'll simplify our thread-safe queue code by employing a "benign value" to represent the default max queue size.
Episode #126: Queue
Today's episode introduces the Queue standard library, and shows how it can be used to coordinate threads.
Episode #118: Even And Odd
A small dish today, about some numeric methods I often forget exist.