In this episode, we explore command/query separation by looking at what happens to unit tests when the separation breaks down.
Category: Episodes
Episode #016: super in Modules
How to find out if there is a super method to be called, and other tricks for using super within a module.
Episode #015: Advanced #fetch
In this final installment on the #fetch method we look at #fetch beyond Hash; #fetch with nested hashes; re-using default blocks; and more.
Episode #012: #fetch for Defaults
How to use Hash#fetch to provide defaults for missing keys, and why you might prefer that to other techniques for defaulting values.
Episode #011: Method and Message
A look at the difference between methods and messages, and why passing methods around isn't as common in Ruby as it is in e.g. JavaScript.