As we continue to rewrite a subset of the UNIX tail(1) command, we learn how to write a do...while loop in Ruby.
Category: Premium Episodes
Episode #072: Tail Part 1: Random Access
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 …
Episode #071: Break With Value
In the second of two episodes about the 'break' keyword, we discover how to override method return values to suit our own needs.
Episode #070: Break
In this, the first of two episodes on the 'break' keyword, we look at how it can be applied beyond breaking out of loops.
Episode #069: Gem-Love Part 4
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
Episode #068: Display Builder
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 …
Episode #065: FFI Part 7: The Last Refactor
Factoring out a high-level interface for PulseAudio.
Episode #062: Fiber
In this episode we'll explore Ruby's lightweight concurrency primitive by using it to emulate the Enumerator class.
Episode #061: FFI Part 6: PulseFFI Awakens
Tieing methods together with the Composed Method pattern.