Continuing to refactor our minimal tail(1) implementation, today we clean up a loop by encapsulating its state in a new object.
So far, our reimplementation of tail(1) bears a striking resemblance to the style of code we might find in the C implementation of the same utility. In this episode we'll …
We've figured out how to read chunks of text backwards from a file, now it's time to tackle searching that text for the beginnings of lines.
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.
As we continue to rewrite a subset of the UNIX tail(1) command, we learn how to write a do...while loop in Ruby.
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 …
In the second of two episodes about the 'break' keyword, we discover how to override method return values to suit our own needs.
In this, the first of two episodes on the 'break' keyword, we look at how it can be applied beyond breaking out of loops.
The last Gem-Love episode had me creating a command-line client. This time around, I use Rack and Sinatra to build a simple server. Source code can be found here: https://github.com/avdi/gem-love/tree/rubytapas-069
In some applications there is a many-to-many relationship between types of objects that may be displayed to users, and formats in which they may be rendered. There may even be …