Cough, AJAX

Matt S Trout dbix-class at trout.me.uk
Wed May 24 21:29:43 BST 2006


Dominic Mitchell wrote:
> Matt S Trout wrote:
> Yes, Prototype is fairly invasive.  But it's still very useful.  If 
> you're not designing the worlds next wonder-Ajax whizzy application and 
> instead just need a small amount of help to spice up some existing 
> pages, then I think it's a really good way of going about doing that.

I've given up on that sort of attitude as a honey trap. "It's only a 
quick hack" is great until it's been in production for a couple years, 
has extended vastly beyond what was originally expected and is an 
unmaintainable heap of crap.

Maybe I'm just cynical.

> I don't deny that it's a fairly random collection of functionality.  I 
> have tried subclassing bits of scriptaculous and it worked for me.  
> *shrug*.

I said prototype, not scriptaculous. Prototype turned out to be 
sufficiently craptastic I ruled out scriptaculous simply for using it.

> I have to admit, I checked out dojo from svn to try and have a nose 
> around.  I kind of gave up after seeing how much of it there actually 
> was.  The ajaxian tutorial you linked to was slightly better at 
> comprehending what's in there (but those boys really need to learn about 
> making source code readable -- margins & indents matter).

Most of it was pretty well formatted where I could find it; the only 
issue was to get the tapstop set sensibly.

>>> Whatever you do, though, make sure you use a library.  No point in 
>>> reinventing the wheel...
>>
>> Although in the case of prototype.js the wheel is square, spiky, can 
>> only be fitted to one specific model of Reliant Robin and refuses to 
>> share the road with any other brand of wheel.
> 
> Whereas Dojo is more like an 18-wheeled monster?

If you load the kitchen sink build, sure. But then again if you install 
Bundle::CPAN::Everything you know you're asking for bloat too :)



More information about the london.pm mailing list