Today we look at how we can tighten up our code with the #flat_map method.
Month: February 2015
Episode #284: Testing Retry
Ruby's "retry" keyword is powerful, but how do we test the code that uses it?
Episode #283: Count
Today's episode has some quick tips on how to get the most out of Ruby's #count method.
Episode #282: Advanced Audited Predicate
Today we explore some more advanced considerations around the "audited predicate" technique from episode #279
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 #280: Itself
Today's episode covers a new Ruby 2.2 feature which is more useful than it may at first appear to be.
Episode #279: Audited Predicate
Programs are good at giving us "yes" or "no" answers. But often the next question is: "why?". In today's episode we look at one way to answer this question.
Episode #278: Lazy
Today's episode is about creating lazy streams of data using Ruby's lazy enumerators.