Guides to the core and standard libraries, as well as selected Rubygems.
Category: APIs and Libraries
Episode #115: pp
In this quick live episode I demonstrate a standard library that improves on Kernel#p
Episode #113: p
We all use 'puts' for debugging at some point. This episode shows why 'p' is a better choice.
Episode #107: String Subscript Assignment
In today's episode, we learn a wonderfully convenient way to substitute text.
Episode #105: Checking for a Terminal
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.
Episode #104: Parsing Time
It would be great if time were always represented in readable, un-ambiguous ISO8601 formats. But when importing legacy data we don't often have that luxury. In this episode, we look …
Episode #099: String Subscript Regex
Today the focus is on a convenient way to extract substrings using regular expressions. We glossed over this technique briefly in an earlier episode, but now it's front and center.
Episode #079: Concat
There is more than one way to concatenate arrays, but not all ways are created equal. In this episode we'll compare three approaches in terms of both semantics and efficiency.
Episode #067: Moneta
In the last episode we gave a class the ability to cache HTTP responses in a Hash or something that behaves like a Hash. Now we'll introduce the Moneta gem, …
Episode #060: Ascend
Now that we've been formally introduced to the Enumerator class, it's time to apply that knowledge in a concrete way. In this episode we use Pathname and Enumerator to locate …