roles, advice, and BUILD in Moose

November 5, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

A very common complaint on #moose is, โ€œBUILD is broken. I put BUILD methods in my code and they never got called.โ€ There are a lot of variations on this. They tend to come from the fact that BUILD is not called like almost any other method. Imagine the following class hierarchy:

what the heck is GVf_IMPORTED?

October 21, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

I was happy to learn about this bizarre flag in Perl, even though it took a lot of aggravation to learn it.

finally started using dzil new

October 20, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

Ages ago, I got a lot of requests for a way to let Dist::Zilla create new dists. Creating a useful command for doing that became part of the TPF grant work that I did, and dzil new started to work in May. By June, it reached the state itโ€™s been in for months now, which seemed pretty good โ€“ but I didnโ€™t really know, because I wasnโ€™t using it.

Throwable::X: common behavior for thrown exceptions

October 19, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

When I first wrote about Test::Routine, I said it was a way of building a replacement for Test::Class that relied on Moose for all of its class composition. I compared it to replacing Exception::Class with Throwable, which let me get rid of a lot of features that were oriented toward building classes, and which were different from and inferior to those provided by Moose.

Test::Routine interface change

October 19, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

Iโ€™ve been trying to learn more about different patterns people use while writing test code, and to make sure that Test::Routine accomodates them all fairly easily. So far, Iโ€™m happy with it, but Iโ€™ve had a few changes Iโ€™ve made. So far, only one is intended to be user visible. From now on, instead of writing:

Test::Routine: composable units of assertion

September 30, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

Test::Routine is a new system for building reusable hunks of tests that can be written quickly as one-offs, broken into modules for reuse, and that can use the large existing set of Test:: libraries from the CPAN. It implements as few features as possible and instead tries to let you use Mooseโ€™s extensive and commonly-used object system to get things done.

a new release of Test::Deep

September 29, 2010  ๐Ÿซ ๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป

Fergal Daly wrote one of the most fantastically useful testing modules on the CPAN, Test::Deep. If you donโ€™t use it, you really should. Itโ€™s very powerful and very easy to use. Fergal has decided that he can no longer promise enough time to Test::Deep maintenance, and Iโ€™m pleased to report that I have accepted responsibility.

our new media box

July 29, 2010  โš™๏ธ

Last week, I was at OSCON. I have to write a lot more about that whole experience. For now, itโ€™s only relevant because it mean that when my Popbox arrived, I wasnโ€™t home. I checked some of the reviews and they were bad. Like, shockingly bad.