Eliminating astonishment with a special Ruby idiom for object creation.
Tag: idioms
Episode #436: Ruby 2.4 Destructuring Conditional
Ruby 2.4 eliminates an un-intuitive limitation of if-statements.
Episode #307: Command Loop
In this episode we'll build a simple command-prompt loop in Ruby.
Episode #295: Predicate Return Value Part 2
In the second of two episodes about predicate return values, we look at some of the subtle ways that non-boolean predicate return values can catch programmers by surprise.
Episode #281: Splatted Send
In this episode we discover a trick that can enable us to easily pack up messages with their arguments and pass them around.
Episode #268: Complex Predicate
Today we'll refactor some real-world business logic for clarity and ease of debugging.
Episode #227: Multiline Memoize
Today we'll look at two different ways to memoize a complex method, and talk about why I prefer one over the other.
Episode #209: Implicit And Explicit Conversion
In this episode we look at how to convert our Feet objects back to core numeric types. In the process, we gain the ability to use our Feet objects in …