Since Ruby 2.1, def returns a symbol. In this episode we'll take a look at why this matters, and how it might change the way we define methods.
Episode #220: Type and Class
Where do we draw the line between objects differntiated only by state, and objects differentiated by their class? That's the question we'll examine in this episode.
Episode #219: Adamantium
Today we learn about Ruby gem that makes it easier to build immutable value objects.
Episode #218: Spaceship Revisited
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.
Episode #217: Redesign
Today, a story about a refactoring that went south, and turned out not to be a refactoring at all.
Episode #216: Tell, Don’t Ask
In today's episode, we explore a practical application of the famous "tell, don't ask" principle.
Episode #215: Grep
Today we look at Ruby's grep method, and explore the idea of matching objects by example.
Episode #214: Conversion Ratio
Today we puzzle through a design problem that threatens to result in dozens of extra methods.
Episode #213: Conversion Protocol
Today's topic is "conversion protocols", an extensible way to enable safe, automatic conversions between types.