Meta-Meta-Meta Problem Solving
OK, so I'm working on a project and some unexpected bug crops up. It turns out to be a bug in a dependency. I could work around it, but… I happen to maintain the dependency, so better to fix…
OK, so I'm working on a project and some unexpected bug crops up. It turns out to be a bug in a dependency. I could work around it, but… I happen to maintain the dependency, so better to fix…
I've pushed Type::Tiny 0.045_03 to CPAN this afternoon. Initial results from CPAN testers seem promising, but if you've got a distribution that uses Type::Tiny it might be worth trying it out with the new version to see if anything…
Welcome to Planet Moose, a brief write up on what's been happening in the world of Moose in the past month, for the benefit of those of you who don't have their eyes permanently glued to the #moose IRC channel,…
Welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued to the #moose IRC channel,…
It’s quite a common pattern in object-oriented programming to have an attribute which takes a string as its value, but which only has a small number of valid values. For example: package Shirt; use Moose; # “S”, “M”, “L”,…
Welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued to the #moose IRC…
or Querying the Designated API of Perl Roles…
Welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued to the #moose IRC…
One of the features of Type::Tiny that differentiates it from Moose’s built-in type constraint system is that it allows stand-alone coercions which can then be mixed with type constraints as required. So if you had a Split coercion which split…
So what’s DOPE? No, not DOPE, DOAP… what’s DOAP? Here’s what Wikipedia has to say… DOAP (Description of a Project) is an RDF Schema and XML vocabulary to describe software projects, in particular free and open source software. It…
In a previous entry I discussed some of my favourite CPAN modules for testing Perl code. I got to thinking… there are all these little frameworks on the CPAN like GID, and Modern::Perl, and Defaults::Modern, and Bubblegum which are…
The smartmatch operator (~~) introduced in Perl 5.10 (and borrowed from Perl 6) has been the subject of much criticism. Its behaviour changes based on the types of its arguments (arrays vs hashes vs numbers vs strings vs …)….
Welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued to the #moose IRC…
If you don’t test your code, what makes you think it works?! Here are some of my favourite modules for testing Perl code….
Type::Tiny has been knocking around in some shape or another for almost a year now. It’s certainly grown a lot since its first commit. The distribution probably no longer merits the “Tiny” name, though the lead module itself is…
OK, so you’ve written your module like this: package MyUtils; use strict; use warnings FATAL => qw( all ); sub frobnicate { … } 1; It passes its test suite, and all is fine and dandy. You use the frobnicate…
Welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued to the #moose IRC…
PAUSE was down. Now it’s up. Yay! Well done, and thank you to everyone who helped restore, and indeed help with the day-to-day running of PAUSE….
Sub::Trigger::Lock is a workaround for the problem that Moose read-only attributes aren’t really read-only; at least, not in the way that people might expect them to be. Here’s an example: package Foo { use Moose; has bar => (is…
Happy new year, and welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued…