NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
OpenInteract comparison (Score:2)
Re:OpenInteract comparison (Score:2)
True. Maypole aims to be as simple as possible, while still enabling you to do the complex things if you need to. The Orkut-alike was designed basically as a test to make sure Maypole could actually do the complex things relatively easily. But OI2 is certainly bigger and chunkier, and possibly better suited to more environments - Maypole is meant to be sleek and generic, and I hope I've designed it well enough to be generic but it hasn't been stressed in as many environments as OI2 yet.
That's because you have documentation, you cheat! :)
Yeah. I wanted Maypole initially so that I could run up really really quick interfaces to databases. The fact that it does more is a bonus. I'm a big fan of obviating as much code as possible and generally doing what the user means. As you say, there's always a trade-off for that and Maypole and OI2 sit at different ends of the scale.
Maypole does too, but the Template Toolkit is Too Damned Good so nobody's written any other View classes yet. :)
Yep.
There's your simplicity-functionality tradeoff again.
Yeah. Now you can override the mapping method in Maypole - or indeed any of the methods - but it's intended to give you sensible defaults that do what you mean. In fact, the mapping method isn't in Maypole at all - it's in Apache::MVC.
Maypole does this with attributes, which is quirky but fun.
There's a much longer Maypole article coming out on DeveloperWorks soon, hopefully, which not only talks about simple stuff like the BeerDB, but also how I put together Flox.
Again, you got there first, and nobody's implemented the front-end classes for Maypole yet. That said, I got some patches to support Apache 2, and so there'll probably be a CGI::Maypole coming out this Thursday.
*nod*. Maypole doesn't touch this.
No quibbles there.
Reply to This
Parent
Re:OpenInteract comparison (Score:2)
That's an interesting idea. For some reason attributes always seem a little peek-a-boo to me, but that's probably because I haven't hung out with them enough.
One of the more obvious comparisons I forgot: Maypole has a much better name than OpenInteract!
Re:OpenInteract comparison (Score:2)
What do you mean by "peek-a-boo"? If handled properly, they can provide elegant solutions. For example, what if you want your subroutine to return a list in list context, a reference to an array in scalar context and die if called in void context? You might write this:
Re:OpenInteract comparison (Score:2)
But I'm probably concerned over nothing :-)