02.06.2013 Views

jQuery Cookbook - Cdn.oreilly.com - O'Reilly

jQuery Cookbook - Cdn.oreilly.com - O'Reilly

jQuery Cookbook - Cdn.oreilly.com - O'Reilly

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Its <strong>com</strong>munity support is actually fairly useful, including several mailing lists, IRC<br />

channels, and a freakishly insane amount of tutorials, articles, and blog posts from<br />

the <strong>jQuery</strong> <strong>com</strong>munity.<br />

• It’s openly developed, which means anyone can contribute bug fixes, enhancements,<br />

and development help.<br />

• Its development is steady and consistent, which is to say the development team is<br />

not afraid of releasing updates.<br />

• Its adoption by large organizations has and will continue to breed longevity and<br />

stability (e.g., Microsoft, Dell, Bank of America, Digg, CBS, Netflix).<br />

• It’s incorporating specifications from the W3C before the browsers do. As an example,<br />

<strong>jQuery</strong> supports a good majority of the CSS3 selectors.<br />

• It’s currently tested and optimized for development on modern browsers<br />

(Chrome 1, Chrome Nightly, IE 6, IE 7, IE 8, Opera 9.6, Safari 3.2, WebKit Nightly,<br />

Firefox 2, Firefox 3, Firefox Nightly).<br />

• It’s downright powerful in the hands of designer types as well as programmers.<br />

<strong>jQuery</strong> does not discriminate.<br />

• Its elegance, methodologies, and philosophy of changing the way JavaScript is<br />

written is be<strong>com</strong>ing a standard in and of itself. Consider just how many other<br />

solutions have borrowed the selector and chaining patterns.<br />

• Its unexplainable by-product of feel-good programming is contagious and certainly<br />

unavoidable; even the critics seem to fall in love with aspects of <strong>jQuery</strong>.<br />

• Its documentation has many outlets (e.g., API browser, dashboard apps, cheat<br />

sheets) including an offline API browser (AIR application).<br />

• It’s purposely bent to facilitate unobtrusive JavaScript practices.<br />

• It has remained a JavaScript library (as opposed to a framework) at heart while at<br />

the same time providing a sister project for user interface widgets and application<br />

development (<strong>jQuery</strong> UI).<br />

• Its learning curve is approachable because it builds upon concepts that most developers<br />

and designers already understand (e.g., CSS and HTML).<br />

It is my opinion that the <strong>com</strong>bination of the aforementioned <strong>jQuery</strong> points, and not<br />

any single attribute on its own, sets it apart from all other solutions. The total <strong>jQuery</strong><br />

package is simply unmatched as a JavaScript tool.<br />

The <strong>jQuery</strong> Philosophy<br />

The <strong>jQuery</strong> philosophy is “Write less, do more.” This philosophy can be further broken<br />

down into three concepts:<br />

• Finding some elements (via CSS selectors) and doing something with them (via<br />

<strong>jQuery</strong> methods)<br />

• Chaining multiple <strong>jQuery</strong> methods on a set of elements<br />

1.0 Introduction | 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!