In which we put some fears about thread-safety to the test, and to rest.
Tag: variables
Episode #308: Keyword Sugar
Today's dish is a quick trick for adding keyword arguments to established APIs.
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 #276: Fattr
Do you ever feel like you're repeating yourself when declaring and then initializing Ruby attributes? Today's episode will help you DRY up your classes.
Episode #264: Destructuring
Today's special is a demonstration of how we can use Ruby's built-in "destructuring" capabilities to simplify complex assignments.
Episode #239: Parameter Default
Think you know everything there is to know about parameter defaults? Think again!
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 #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.