I saw a re开发者_如何学Cference 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?
YUI is a completely separate library from to Prototype. YUI has more built in UI elements than Prototype and a very different design philosophy.
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 several built in widgets (datepicker, grid, validation,...) which of course makes it a bigger library too. What i like most about YUI is the fact that the code organised in very clear namespaces.
精彩评论