Today's episode delves into some advanced regular expression features, including "lookahead" and "lookbehind". Notes for further exploration: The book "Programming Ruby 1.9 and 2.0" rubular.com Talks from Nell Shamrell. There …
Month: November 2013
Episode #154: Testing Threads
Working with threads is hard enough, but getting them under test is even trickier. In this episode we start to look at techniques for verifying the logic of multithreaded code.
Episode #153: Testing Sleep
We try to avoid writing slow unit tests, but what if we are testing a method whose responsibilities include waiting for a period of time? In this episode we look …
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 #148: Rake Invoke
This episode looks at how to invoke Rake tasks from other programs.