Language features, syntax, and gotchas.
Category: Language
Episode #211: Protected
The distinction between "public" and "private" method visibility in Ruby is pretty obvious. But when should we use "protected" visibility? This episode attempts to answer that question.
Episode #206: Coercion
Ruby generally doesn't allow mixing of types without explicit conversion. So have you ever wondered why it's possible to multiply 2.3 (a float) by 5 (an integer)? In today's episode …
Episode #202: Identity And Equality
Today's episode deals with the concepts of identity and equality - what makes one object equal to another.
Episode #187: More Keyword Arguments
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.
Episode #186: Keyword Arguments
Today's episode is a guide to transitioning various hash argument idioms to Ruby 2.0/2.1 keywords.
Episode #174: Multiple Assignment
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 …
Episode #173: For
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 …