Guides to the core and standard libraries, as well as selected Rubygems.
Category: APIs and Libraries
Episode #292: Delegate Class
Ruby's 'delegate' stdlib provides a couple different variations on delegator bass classes. Today we'll look at the differences between the two, and at how to choose on or the other.
Episode #291: Advanced Chunk
Today we continue our look at the Enumerable#chunk method, this time applying it to the problem of a streaming network protocol.
Episode #290: Chunk
Chunking streams of data by some criterion is a technique with a broad range of applicability. In today's episode, we'll learn about Ruby's approach to chunking.
Episode #288: Partition
Today's is a quick episode about efficiently splitting a list into high- and low-priority subsets.
Episode #285: Flat Map
Today we look at how we can tighten up our code with the #flat_map method.
Episode #283: Count
Today's episode has some quick tips on how to get the most out of Ruby's #count method.
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 #278: Lazy
Today's episode is about creating lazy streams of data using Ruby's lazy enumerators.