How to use Hash#fetch to provide defaults for missing keys, and why you might prefer that to other techniques for defaulting values.
How to reliably discover a user's home directory.
Some alternative ways to write symbols in Ruby code.
Hash#fetch is one of my favorite methods. In this episode, I take a look at using it to assert the existence of hash keys.
A look into how Ruby's object construction works, and how we can customize constructors for special scenarios.
Composing command lines with fancy array literals.
In this longer-than-usual episode, some thoughts on how to enable method logic to remain stable and unchanged while evolving and changing the source and scope of the values used by …
Character literal syntax in Ruby.