[Catalyst] [ANNOUNCE] Alien::Dojo v0.01
Matt S Trout
dbix-class at trout.me.uk
Tue May 23 19:18:51 CEST 2006
Dominique Quatravaux wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Matt S Trout wrote:
>>> please elaborate on what's wrong with auto-download and regexes
>>> per se?
>> It's a foolish, fragile approach. [...] at the very least use a
>> real HTML parser.
> So I gather you agree with auto-download, but you are bashing the
> regex part of the idea. I may be a clueless newbie but I would still
> rather have some constructive arguments, so here are mine:
> * an HTML parser with dependencies would hardly fit into inc/
> * HTML is text, regexes process text
> * The thing has to be robust against the Dojo homepage changing
> *slightly*, not against someone throwing test HTML at it with
> every single visible character entity-escaped and a decoy
> download link in an HTML comment
> Exactly what kind of real-world alteration of the Dojo homepage do you
> think a simple regex (agreed, not the current one) would miss, but an
> HTML parser would catch?
The addition of an alt attr, given your current regex.
>> Look at version.pm. Look at how CPAN handles version.pm-using
>> modules. You may find it enlightening.
> But then again I may not. Here is an excerpt from the man page of
> version.pm on my system (perl 5.8.8 from Debian unstable):
> # If you are using Module::Build or ExtUtils::MakeMaker, so that you
> # can release your module to CPAN, you have to recognize that neither
> # of those programs completely handles version objects natively
> # (yet).
> So how do I go about achieving enlightenment now?
Use Module::Install, which does handle version objects natively.
More information about the Catalyst