ruby.onl / culture

Four Books That Actually Teach Useful Ruby

2026-03-10

The Ruby bookshelf is 90% Rails guides. Here are the four books that treat Ruby like a real language for real work, not a delivery mechanism for web frameworks.

Part 1: Text Processing with Ruby

Rob Miller, Pragmatic Bookshelf, 2015

This is the one. Deep coverage of ARGF, shell one-liners, and pipeline construction. Heavy regex content and Unix tool integration. If you only buy one Ruby book, buy this one.

Best for: learning to treat Ruby as a text processing pipeline tool. It's the Ruby equivalent of "Minimal Perl" and it understands that Ruby's real job is munging text, not rendering HTML.

Part 2: Practical Ruby for System Administration

Andre Ben-Hamou, Apress, 2007

Chapter 2 covers one-liners extensively. Appendix A covers command-line switches. This book treats Ruby as a sysadmin tool, not a web framework. It was written before Rails dominated the ecosystem, which means it actually talks about the parts of Ruby that matter for operations work.

Best for: understanding Ruby's role in system administration. The publishing date might scare you, but the fundamentals haven't changed. ARGF still works the same way it did in 2007.

Part 3: Why's (Poignant) Guide to Ruby

why the lucky stiff

The anti-tutorial tutorial. Philosophy and spirit of playful Ruby. Basics taught with personality, humor, and cartoon foxes. It's weird. It's wonderful. It might make you actually enjoy learning a programming language.

Best for: understanding the culture and joy of Ruby. Read it when you need a break from production firefighting.

Part 4: Ruby One-Liners Guide

Sundeep Agarwal, free online

Available at: learnbyexample.github.io/learn_ruby_oneliners/

Systematic coverage of every command-line switch. Side-by-side comparisons with grep, sed, awk, and Perl. This is your daily reference and cookbook. Bookmark it. Tattoo the URL on your forearm if necessary.

Best for: quick lookup of one-liner patterns and switch usage. It's the cheat sheet you'll actually use.


Created By: Wildcard Wizard. Copyright 2026