The Argument for jQuery
I am writing up the reasons we are building with jQuery and why we want to use it site-wide. So I'm posting my argument below, because I would like to get some other folks' opinions about this and turn this into a mini-document that other developers in our situation can use in your own companies.
(unfortunately HN comments eat tabs and spacing for breakfast.)
---------
The javascript written to enabled dynamic interactions within our site is written with the jQuery javascript library. The intent is that jQuery will become the standard way we implement javascript across all of our site.
The benefits provided by jQuery
a. Ease of development.
i. Code written with jQuery is more compact, easier to read, and more maintainable than javascript written traditionally to do the same thing.
ii. It is possible to quickly achieve required results using jQuery that might take 10x as long to achieve with standard javascript code.
iii. Using jQuery does not prevent us from using regular javascript where necessary. jQuery is written in javascript simply makes it easier to do most things.
b. Automatic cross-browser functionality
i. jQuery is designed to get rid of cross-browser differences between javascript implementations.
ii. Adding/removing events and DOM manipulation are things that are easy with jQuery that require excess code and development time to have them function the same in all browsers traditionally.
c. Advanced UI features
i. jQuery comes with many built-in visual effects.
ii. See http://docs.jquery.com/Effects and http://docs.jquery.com/UI for examples.
d. Excellent overall performance speed
i. Thousands of users of jQuery have helped to contribute code and fix bugs in the library that have made it very fast compared to other libraries and traditionally written javascript.