
I'm very interested in the jQuery JavaScript library: It's a powerful tool, and we use it a lot at EnderTech. Recently I took a gander at one of the jQuery books in the company library. The book in question: jQuery: Novice to Ninja, by Earle Castledine and Craig Sharkie (SitePoint 2010).
I liked this book. First, it is comprehensive in its coverage. It hits upon all the standard user interface functionality for which one uses jQuery: menus, tabs, slideshows, animated effects, using AJAX to update only part of a page, and so on. And these topics are thoroughly presented: they are always accompanied by useful code examples, along with detailed analysis of the code.
The authors even back up and discuss the higher-level design and technical considerations they tackle when creating a website. For example, they cover where jQuery is appropriate, and isn't, in implementing the features of the site. They stress the idea of "progressively enhancing" a site so that jQuery can be used to improve the user experience, but won't render the site useless if JavaScript isn't enabled on a user's browser.
Another thing I liked is that the book provides oodles of references to the more popular jQuery plugins and User Interface Library components, which can make creating the above-mentioned functionality even easier. It's a great list of resources that's very practical in helping you to get things done without reinventing the wheel, and again, the authors comment on when plugin use is or isn't suitable.
One more thing in the plus column is the authors' enthusiastic, lighthearted style in presenting what's often rather dry material. The sample website used throughout the book, for example, is a parody (I hope) of all those sleazy celebrity gossip websites so prevalent in our current culture.
The book is targeted both for non-developers – designers, for example – and developers, and it seems to accommodate both types of reader fairly well. I myself, a developer, found a lot of useful information in the book, and the solutions it presents are not so simplistic so as to be not useful to those who have JavaScript experience. But the book also seems to take care to give novices the proper grounding in basic JavaScript concepts and the best practices necessary to create good code.
In fact, there's quite a bit of introductory JavaScript material, and there's a "best practices" section that teaches standard things such as namespacing your code to avoid conflicts with other website code. Having said that, there's a lot to learn here for a novice programmer, so I hope aspiring developers don't find all the heavy duty code here and its discussion too daunting.
Speaking of daunting, a small criticism would be that the chapters are a tad too long for my taste, and even with the humor can be slow going. For example, Chapter 6, "Construction, Ajax, and Interactivity" came in at about 50 pages, and it seems that the "Construction" section, which contains the "best practices" just mentioned, could have been broken out into a separate chapter. Other chapters could have benefited from the same kind of treatment, making them more approachable – and making information more findable later.
All in all, this book does a very good job: It provides a comprehensive, sound, and practical treatment of jQuery, with plenty of examples for putting it to work in real-world situations, and it can be a valuable resource for both jQuery novices and more experienced developers.
New Blog Post! Gherkin - It Ain't Just a Pickle! http://t.co/diBtFADy
November 7, 2012
You built or have a site and now what? Usability testing! http://t.co/Qt8IX3NY Experiment, improve, repeat. We <3 usability!
October 18, 2012
Google Throws Open Doors to Its Top-Secret Data Center | Wired Enterprise | http://t.co/UoCR4op0 http://t.co/mnHXix2C -- we love this stuff!
October 17, 2012