Today we'll look at two different ways to memoize a complex method, and talk about why I prefer one over the other.
Today we go a little deeper into keyword arguments in Ruby 2.0/2.1, covering a few use cases we didn't cover in the last episode.
Today's episode is a guide to transitioning various hash argument idioms to Ruby 2.0/2.1 keywords.
Today's special is a note on style with a side order of opinion. Enjoy! (Note: I made a mistake in the visualization of which variables correspond to which on either …
Today's episode introduces the concept of thread-local variables, and shows how they can be put to use in an ActiveRecord-like library.
This episode takes a look at some potentially surprising rules for how Ruby looks up constants. Notes: "Everything you ever wanted to know about constant lookup in Ruby", by Conrad …
Today, some thoughts on writing class-level attribute accessors.
In this episode we tackle how to override base class methods while cleanly passing through multiple base-class arguments. Notes: Paul Battley on Destructuring Assignment in Ruby
Sometimes a block or method may receive arguments that you just don't care about. This episode introduces the idiomatic Ruby way to indicate that certain arguments should be ignored.
Today we take a look at a related feature to Ruby's "splat" operator: the ability to recursively destructure arrays using grouped assignment.