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 …
Today's episode tackles a subject I've always wondered about: how accurate is Kernel#sleep?
In this episode we'll mimic the behavior of command-line tools like Git that automatically page their output if they detect that they are being run from a terminal.
Marching right along in our reimplementation of UNIX tail(1), today we tackle the problem of dumping the tail of the file to STDOUT once we've found the starting point.
This episode kicks off a short miniseries on re-implementing a small subset of the UNIX "tail" command in Ruby. We'll start by learning how to jump around to arbitrary positions …
This episode explores ARGF, a powerful object for working with input files in command-line programs.
Does code optimized for RAM usage need to be ugly? Find out, in today's episode!
This episode takes a look at two different methods for redirecting standard out and standard error - one simple and quick, one more comprehensive.
In this episode we look at the Tempfile standard library, and how it can facilitate communicating with subprocesses.