With the FFI Gem, building wrappers for C libraries is easier than ever. This episode gives a brief overview of building the beginnings of a Ruby interface to the Linux …
Category: Episodes
Episode #025: OpenStruct
This episode focuses on OpenStruct, which makes it easy to create ad-hoc value objects from hashes.
Episode #024: Incidental Change
Have you ever looked at a diff that was cluttered by meaningless "noise" - changes that existed just to satisfy the parser, and were a distraction from the semantic changes …
Episode #023: Tempfile
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.