| CPAN Ratings Reviews by Ron Savage | |
| Home | Search | About | Bitcard Account | Login |
Why write this module when we're already using Capture::Tiny?
metacpan.org/module/Capture::Tiny
Ron Savage - 2011-08-12T00:39:25
Well, HTML::Template has served us well for a long time. It does the job nicely. I don't think the criticisms are justified.
The Template Toolkit I find just a bit too big, slow and complex to bother with.
These days, Text::Xslate has, IMHO, replaced these, and (essentially) all similar templating modules.
Ron Savage - 2011-06-11T16:15:03
To Christian:
I can only draw your attention to
<a href="en.wikipedia.org/wiki/Principle_of_le... Principle of Least Surprise</a>
It's a good guideline on how to avoid bad interface or implementation design.
To Ben:
No, I don't think it's a joke module. You might be thinking of a stack simply using my(@stack), etc.
However, when the stack (arrayref) is an attribute of an object of a class, it becomes a bit painful to be always doing:
my(@stack) = @{$self -> stack};
push @stack, $new_data;
$self -> stack([@stack]);
Vastly better is $self -> stack -> push($new_data).
So, having a rational module, like Queue::Base, to manage something like this, makes sense. Or at least, it ought to make sense.
Ron Savage - 2011-06-11T16:09:29
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|