Sometimes using a string format is overkill. Today we look at quick and easy ways to convert to and from hexadecimal, octal, binary, and other integer representations.
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 #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.