Return from File in Ruby

Did you know that in Ruby, you can return from a file the same way you return from a method? Check out what this means…

Ruby Hash Shortcut Syntax

Why say something twice, when you can say it just once? In this episode by Noel Rappin, co-author of Programming Ruby 3.3, you’ll learn a…

Self-Expiring Code

The trouble with temporary fixes is that they have a tendency to be not-so-temporary. They are forgotten, they accumulate, and sometimes they cause trouble. In…

Unary Operators in Ruby

A bit of seemingly-nonsensical Ruby behavior leads us to a discussion of unary operators, parsing heuristics, and the vital importance of whitespace.

RUBYOPT and the Sneaky Shim

You need to insert a compatibility shim, diagnostics, or tracing code into a Ruby process… but you don’t have control over how the program is…