3 ms·
what does this article have to do with jQuery? can we please stop with the fanboy <<myLib>> is better than <<urLib>>? it's short sighted and misleading. i've u
by mundizzle 16y ago
what does this article have to do with jQuery? can we please stop with the fanboy <<myLib>> is better than <<urLib>>? it's short sighted and misleading.
i've used both libraries in many commercial projects for large corporations. both have their strengths and weaknesses. in many cases, directly comparing them is like comparing apples and oranges.
YUI is well suited to larger "kitchen sink" apps where you require many rich widgets working in unison. You know that if you use a YUI widget, it's professionally coded, well-documented, and works cross-browser. The same can't be said for all jQuery plugins. YUI 2 doesn't have the syntactic suger of jQuery, however, YUI3 fixes that. Finally, YUI is ANYTHING but monolithic. you only load in the files you want. jQuery is the lib that is all in one file - the very definition of monolithic.
jQuery is great for simplicity and ease of development. Great for a website that you want to add some DOM interactivity and/or AJAX. Perfect for "find something -> do something". While it has a huge amount of plugins, they vary dramatically in terms of quality. If you are building a large web app, things can start to break down with a mix of plugins from different authors and line upon line of chained methods.
in short, both are great libraries with excellent strengths. use the right tool for the job.