Revisiting the idea of "referential transparency", today we look at some unforseen side-effects of a method that modifies its arguments.
Today we'll refactor some real-world business logic for clarity and ease of debugging.
Today's dish is a quick little refactoring that demonstrates working with multiple values pulled from a Hash.
Think you know everything there is to know about parameter defaults? Think again!
As we continue to talk about the process of loading code in Ruby, today we look at how requiring features differs from loading files.
Newer arrivals to Ruby sometimes wonder when to use #each, and when to use 'for'. Today, a detailed explanation of how they differ, and an opinion on when to use …
Some techniques for making boolean flag arguments read more meaningfully.
A small dish today, about some numeric methods I often forget exist.
Today we take a look at a related feature to Ruby's "splat" operator: the ability to recursively destructure arrays using grouped assignment.
Continuing to refactor our minimal tail(1) implementation, today we clean up a loop by encapsulating its state in a new object.