jQuery Novice to Ninja Book Review
jQuery has become the one of the must use/must know Javascript libraries of many Web 2.x domains. This remarkably compact .js file contains plenty of dynamic presentation layer goodness, but learning to use it well beyond the numerous example snippets on the web is a necessity if your web project depends on it. Several books are already on the market, and publisher Sitepoint recently joined the fray with jQuery: Novice to Ninja by Earle Castledine and Craig Sharkie. How does it stack up against the rest? Read on to find out.The book begins with a brief review of why jQuery should be used and what makes it so captivating. However, unlike other jQuery books I have read, this one does not try to initially wow the reader with impressive mouse over tricks, floating menus and fades/dissolves and more. Instead, the authors methodically focus on a step-by-step analysis of how to call upon and construct jQuery calls from the ground up. Rather than hit readers first with the sizzle, a foundation of element identification and manipulation makes the educational process flow more effectively. Chapters progress from there to the stuff jQuery is better known for, such as animating, image slideshows, menus, tooltips and panels. Chapter 6 ties jQuery into Ajax, melding all that UI goodness into dynamically updating data. There are no back-end server examples in that chapter, since everything is done on the client-side using Javascript. Chapter 7 delves into forms, controls and dialogs showing once again how easy it is to dynamically construct a more impressive interactive and customized user experience with a few simple function calls. Lists, trees and tables are explored in the next chapter, showing examples calling upon jQuery that rival commercial web UI libraries. The book concludes with a chapter on plugins, themes and advanced topics like adding custom methods and selectors and events to jQuery, and a handful of brief miscellaneous tips (queuing/dequeuing animations, for example). The first brief appendix covers miscellaneous $.ajax and $.support options, while the second appendix covers Javascript tidbits like type coercion, boolean and equality operators. The third and final appendix covers plugin helpers such as the selector and context properties, the jQuery stack and a few closing paragraphs on minification (i.e., using utilities like JSMin and Packer to compress Javascript files for faster download).
The book is peppered with helpful callouts and brief code snippets (most under 15 lines) that show how quickly one can leverage the power that jQuery offers. One chapter or appendix I would have preferred to see is the authors' personal picks for websites and online library resources that feature some of the most impressive jQuery tricks available. Every week I see someone post on their blog a jQuery roundup featuring some sort of technique (typically involving menus, tables and images), but it would have been very helpful for the authors to share their expertise on what resources they recommend as 'best of the web'. A 4-color insert showing off jQuery's more graphically intense examples would have also been a welcome addition. Still, these criticisms are minor quibbles. The book did accomplish its mission of teaching jQuery from the ground up. Though I would not yet consider myself a jQuery ninja, I did feel that the book supplied me with the knowledge to hone my skills to help attain a higher level of mastery more quickly, especially when compared to some of the previously released jQuery titles on the market today.
Title: jQuery: Novice to Ninja Author: Earle Castledine and Craig Sharkie Publisher: Sitepoint ISBN: 978-0-9805768-5-6 Pages: 390 Cost: $39.95

