[Grok-dev] megrok.yui released

Martin Aspeli optilude at gmx.net
Mon Aug 11 18:55:57 EDT 2008


Martijn Faassen wrote:

> A small data point concerning the power and comprehensibility of its 
> APIs: when implementing drag & drop for KSS at the snow sprint the 
> people involved first were determined to use jquery, but found the API 
> less clear than they wished, and then moved to YUI. That's a while ago, 
> the status of things probably changed by now.

I'm pretty sure that jQuery *had* not d&d at that point. There was a 
shoddy third party library, but they found out it didn't work. It now 
does have d&d and other similar things done properly, from what I 
understand, though I haven't used them myself.

> That said, there are so many javascript libraries out there. I think a 
> drawback of YUI is that it can get rather verbose. Now asynchronous code 
> tends to be, but Mochikit had an interesting more fundamental approach 
> towards resolving it, and I also hear good things about jquery's 
> succinctness.

I love jQuery. Actually, I love jQuery and ExtJS. :-)

> And then there's KSS, which I still have to get into. :)

KSS isn't really a competitor to jQuery or YUI. It's just a way to 
structure your code and wire up dynamic things. You could (and probably 
would) write KSS plugins with one of the richer libraries. You also 
could (and sometimes would) use both approaches, e.g. write a lot of 
JavaScript directly for highly dynamic pages, and factor our commonly 
used "behaviors" into KSS actions that can be applied declaratively 
using CSS syntax.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book



More information about the Grok-dev mailing list