Even the most basic of Ruby methods sometimes have hidden depth. Today we'll take a look at some advanced uses of the puts method.
You might remember the Gateway and Mapper patterns from recent episodes. Today we'll look at how to insert a caching layer between those two patterns. In the process, we'll examine …
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.