jeudi 7 juillet 2011

Module::Build rocks!!!

Yes I know, this module is already four years old and I'm probably the last Perl coder still using ExtUtils::MakeMaker for his modules.

Some experienced friends of mine already told me about it.
(Hello Maddingue, better later than never...)
I knew that I had to use it, but until today I didn't...

For those of you who haven't see the light, here are some reasons why you should switch to it:

_ It's easy (and you should be lazy) => make2build from Module::Build::Convert made the conversion a breeze without requiring to read any doc (ok I've read the doc anyway, but it's beccause I'm curious...)

_ It's powerful (and you should be impatient) => Build testcover and you have a complete test coverage provided out of the box!
(this feature alone is a killer to me, I know you can achieve the same with EU::MM but it is provided by default with Module::Build)

_ It's the state of the art (and you should be hubristic): using tool of the past without any good reason isn't a pragmatic behavior.
Module::Build is more portable, offer more options, and offer an automatic Makefile.PL generation for all the tools expecting one
(to get for free the best of both world)

There are tons of other reasons that you'll find if you read the doc.
Alleviating  SCHWERN's pain (the EU::MM's maintainer) being the most original one to me :-)

Do yourself a favor, just use Module::Build with your modules.

6 commentaires :

chorny a dit…

My App::EUMM::Migrate is also a tool to migrate to M::B.

Leon Timmermans a dit…

You're late to the game. By now hardly anyone thinks Module::Build rocks (and if you really do you may want to consider becoming its new maintainer, it doesn't really have one anymore), it merely sucks less than ExtUtils::MakeMaker for most people. Other alternatives have arisen, and more alternatives are being written as we speak.

Arnaud ASSAD a dit…

@chorny:

Sorry, I wasn't aware of its existence.
I'll give a try to your tool...

@LeonTimmermans:

"Late to the game" ? I know, and by several years...
But am I the only one ?
(side question : why some tools still use EU::MM by default ?)

Can you elaborate on Module::Build weaknesses/flaws?

And provide the name of the alternatives you mentioned?

Anonyme a dit…

Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since Im more of a visual learner,I found that to be more helpful well let me know how it turns out! I love what you guys are always up too. Such clever work and reporting! Keep up the great works guys Ive added you guys to my blogroll. This is a great article thanks for sharing this informative information.. I will visit your blog regularly for some latest post.

Arnaud ASSAD a dit…

@Anonyme:

Just in case you're not just a spammer (you don't imagine the number of meaningful post made just to test the publishing policy) please consider using some kind of authentication (Google, OpenId, Name/URl) I tend to refuse any anonymous post...

dagolden a dit…

I'm glad to hear that Module::Build is working well for you. To put a little context around @Leon's point, a while ago I wrote a short article on the subject: What Tools Should You Use to Create A CPAN Distribution?