Today we continue our look at the Enumerable#chunk method, this time applying it to the problem of a streaming network protocol.
Tag: containers
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 #283: Count
Today's episode has some quick tips on how to get the most out of Ruby's #count method.
Episode #269: TSort with Justin Weiss
Justin Weiss is the featured guest chef, in this episode about sorting trees and why you might want to.
Episode #263: Immutable Enumerators with Tom Stuart
In today's special guest episode, Tom Stuart shows us the benefits of using enumerators as immutable collections.
Episode #252: Pop
In today's episode, we'll eliminate a conditional by passing an argument to the Array#pop method
Episode #248: Min By
In this episode, we'll look at an easy way to find items in a collection with the lowest (or highest) of some attribute. And at how we can apply this …
Episode #246: Values At
Today's dish is a quick little refactoring that demonstrates working with multiple values pulled from a Hash.