views:

97

answers:

2

I saw a reference on a company intranet recently that "You should use YUI instead of prototype". (formerly Prototype was company recommended JS framework).

Is that because YUI builds on/extends Prototype?

Or merely implements a super-set of its functionality?

+2  A: 

YUI is a completely separate library from to Prototype. YUI has more built in UI elements than Prototype and a very different design philosophy.

Hans Lawrenz
Does it offer 100% of what Prototype did? (not necessarily compatible)?
Lemurik
From using them I'd say that YUI can do anything that Prototype can. There are add-ons to Prototype that may offer features that YUI doesn't have but YUI has very mature well documented UI components.
Hans Lawrenz
A: 

YUI and prototype are completely separate and have nothing in common except for both being a JS library.

Prototype is what is is, a javascript framework that makes working with the DOM very easy. It depends on scriptaculous for effects. Prototype is the first popular javascript framework since ajax became popular, imho it has been exceeded by jquery, mootools and many more since then.

YUI is a javascript framework too but features a much bigger API and has serveral built in widgets (datepicker, grid, validation,...) which ofcourse makes it a bigger library too. What i like most about YUI is the fact that the code organised in very clear namespaces.

ChrisR