In this episode we look at the Tempfile standard library, and how it can facilitate communicating with subprocesses.
Episode #022: Inline Rescue
Putting a rescue at the end of a line can get you into unexpected trouble. In this episode we'll look at why, as well as at the one case where …
Episode #021: Domain Model Events
In this episode we take a look at a common problem in Rails development: slimming down a controller whose functionality can't easily be pushed down into models. We address the …
Episode #020: Struct
In previous episodes we've used the Struct class in passing to quickly construct classes. This time, we put Struct in the spotlight, and put it through its paces. You'll want …
Episode #019: Pluggable Selector
In today's episode, we revisit episode 11 (Method and Message), and take a look at a way to make the coupling between objects even looser, by making the name of …
Episode #018: Subclassing Array
Sooner or later you'll want to subclass Array. This episode looks at why that's a bad idea, and presents an alternative.
Episode #017: Pay it Forward
In this episode, we explore command/query separation by looking at what happens to unit tests when the separation breaks down.
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.