Always, Always, Always Run Your Code Examples

Ovid on 2009-06-21T13:17:18

Putting the finishing touches on my YAPC::EU 2009 paper and at the last moment, decided to run a code snippet since I was trying to compare it to Ruby mixins:

package PracticalJoke;
use Moose;
with 'Bomb'   => { exclude => 'explode' },
     'Spouse' => { exclude => 'fuse' };

I should have written excludes and not exclude. That's a very easy mistake to make, but given that people might want to run my examples, it's embarrassing :)