Menu Sidebar


Great article on Data Objects by @pcreux

This self-documentation is a great gift for other developers (and your future-self). A quick look at the Data Object definition tells us what attributes are available. No need to go through those four classes where a hash that’s returned by a third-party API is transformed, filtered, reduced, deleted, symbolized keys and recursively flattened… wait, what?! […]

Dumping Tabular Data with Hirb

Sometimes you just want to dump an ASCII table of data:

In the past when I wanted to dump some tabular data to the console or to a log I used Ruport. This works well enough, but Ruport is an awfully heavy dependency for such a simple task. The other day I ported some […]

ISO8601 Dates in Ruby

ISO8601 is a standard for representing date/time information as a string. ISO8601 dates look like this: 2009-10-26T04:47:09Z. There are a lot of good reasons to store dates in the ISO8601 format. The format is… Unambiguous. There is never any question how to interpret them. Human-readable. You can look at dates stored in ISO8601 and interpret […]

Virtuous Code

"The three virtues of a programmer: laziness, impatience, and hubris" — Larry Wall

Books and Screencasts

RubyTapas Screencasts

RubyTapas Screencasts

Small plates of gourmet Ruby code.

Confident Ruby

Confident Ruby cover

32 Patterns for joyful coding.

The Making of

Confident Ruby cover

Watch me build an app in Sinatra and Rails

Objects on Rails

Objects on Rails

A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.

Exceptional Ruby

Exceptional Ruby

The definitive guide to exceptions and failure handling in Ruby.