26 February 2010
In late 2009 I started porting a largish prototype from jQuery to YUI3. I kept wishing for a cheatsheet to help me translate the idioms of one library to the other. A few months and lots of expert help later, here is a jQuery-YUI3 Rosetta Stone. You can explore the HTML version, download the PDF, or check out the project on GitHub. It is by no means complete or authoritative but I hope it's useful.
Library comparisons are tricky. jQuery and YUI3 intersect only at cross-browser DOM manipulation, CSS, Ajax, etc. I've worked on several large applications that used one library or the other. In general I think jQuery's convenience methods, core selector support, and method chaining are its greatest strengths. YUI3 also has selectors and chaining, but favors configurability and support for complex applications, rather than terseness.