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.
Category: S4 Premium
Episode #289: Mocking Smells 2
Today we continue in our series examining mock-object code smells.
Episode #288: Partition
Today's is a quick episode about efficiently splitting a list into high- and low-priority subsets.
Episode #287: Mocking Smells 1
Test doubles are a powerful but easy-to-misuse tool for design. In this episode, we look at some tell-tale signes that mocks aren't being used effectively.
Episode #286: More Coincidental Duplication
In today's episode, we look at a new example of coincidental duplication: code that appears to be repeated, but really represents different pieces of knowledge.
Episode #285: Flat Map
Today we look at how we can tighten up our code with the #flat_map method.
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