For this season of Perl Seminar NY, we're considering a session of lightning talks focusing on different "Tiny" modules on CPAN. Some of the obvious candidates include:
What other Tiny modules do you use regularly? Why did you pick them over other CPAN modules?
4 Comments
I've chosen Object::Tiny::RW for WebNano. I was inclined to use Moose - but I did not want to limit WebNano usage by making it too startup heavy for CGI scripts, then I ruled out any XS for a similar reason. I also needed something that used hashes for objects so that I could subclass my classes in Moose with MooseX::NonMoose and something that did not use too much magic that would conflict with Moose magic. I could've used just bare Perl OO - but Object::Tiny::RW is really so tiny and it does spare a bit of coding. I also thought about using Object::Tiny, personally I could have lived without the setters - but I thought the users of my lib might be too much off put by the lack of them.
I use Object::Tiny for projects that need fast start up time (like CGI scripts) and Try::Tiny for catching exceptions.
I only use Try::Tiny directly (ignoring dependencies of my dependencies), not because it is "tiny", but because it takes care of a common task that is tricky to get right, and it keeps things focused while doing so. I also directly use DBIx::Connector for the same reason.
I only use Try::Tiny, but should probably think about using some of the other ::Tiny modules.