In today's special guest episode, Tom Stuart shows us the benefits of using enumerators as immutable collections.
In today's episode, we'll eliminate a conditional by passing an argument to the Array#pop method
In this episode, we'll look at an easy way to find items in a collection with the lowest (or highest) of some attribute. And at how we can apply this …
Today's dish is a quick little refactoring that demonstrates working with multiple values pulled from a Hash.
In today's episode, we'll compare two methods for getting to the body of an email: one imperative; one functional; and both idiomatic Ruby.
Good morning diners! On today's menu, we have a deep exploration of Ruby's Range type. Even if you've used ranges before, you might find something new to chew on. Enjoy!
Today, some options for getting the first N elements from a list.
As our series on representing physical quantities draws to a close, we turn our attention to existing libraries, specifically the Unitwise gem.
It's often desirable compare objects to see which is "lesser" or "greater"; but not all objects are inherently comparable. Today we'll look at a scheme for easily imposing an arbitrary …
In episode 205 we introduced the spaceship (<=>) operator, but we also introduced an incompatibility with how Ruby's builtin comparisons work. Today we'll address this oversight.