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.
Category: Episodes
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
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.