My readers (and Twitter followers) know that I've been learning jQuery over the past few months. While I absolutely love it now, I wasn't terribly happy with it at first. Coming from the simplicity of Adobe's Spry framework (which, by the way, I still recommend for folks who aren't very comfortable with JavaScript/Ajax), I found jQuery to be confusing and hard to get into. I also had some trouble with the documentation. I just... didn't get it. But I kept at it. And slowly, at least for me, I began to greatly appreciate the features and power of jQuery.
While I definitely began to get more comfortable with jQuery, my knowledge was a bit scattered. There were some important concepts I just wasn't getting. Learning jQuery 1.3, by Jonathan Chaffer and Karl Swedberg, is an excellent book. I feel like I finally have a proper understanding of how jQuery works and also some of the philosophy behind the mechanics.
Probably the biggest area I needed help with was selectors. The book starts off with a very in depth, very thorough description of this feature. I finally think I get them. Am I able to parse every selector I see? No. For me, selectors act like regex. I know basic regex but at times I have to break them down into components to really get it. This is how I approach selectors now. It's made a huge difference in my ability to work with jQuery. I'm no longer just guessing at the selectors.
After selectors, the book goes deep into effects, events, DOM manipulation, and Ajax. Each chapter contains numerous examples and really gives you a great feel for the feature set. It really became apparent just how scattered my knowledge was. I really being surprised, on multiple occasions, when I found that jQuery fully supported something I was sure didn't actually exist.
Following the 'core' chapters, you then get chapters that go deep into particular uses of jQuery. Things like forms handling and table manipulation. Pretty much the exact kinds of things I think most people are looking to use with a JavaScript framework.
Both plugins, and plugin development, is also discussed. While some good plugins are recommended, I'd like to see a bit more talk about selecting plugins. I still think the plugin system can be a bit daunting to new users. Seeing 200 different options for lightboxes is both good and bad. I know for me it was a bit bad as I had absolutely no idea what plugin would be best for the case at hand. This really is more of a complaint in general as opposed to a critique of the book. But perhaps some discussion could be made of how to recognize what is possible a good plugin. Even something as simple as - was the plugin update recently? Is the author responsive to queries? Etc.
Overall, this is a darn good book. Probably one of the best technical books I've ever read. It's a night and day difference for me in terms of how comfortable I feel with jQuery. If you have any interest in jQuery, or even if, like me, you've been using it but would like to get better (a lot better!), then I highly recommend picking it up. (And if you do it via the affiliate link above, I get a little kick back. :) Also note that the publisher has a sample chapter online here: http://www.packtpub.com/files/learning-jquery-1-3-sample-chapter-4-effects.pdf
p.s. One last detail. As we know, we technical books, things can get quickly outdated. Learning jQuery 1.3 was published in February, and as far as I know, is the most up to date book on the framework.
Comment 1 written by andy matthews on 3 May 2009, at 9:40 PM
If you can target the object with CSS, then you can access it with a jQuery selector. Plus there's extra stuff in there that's not even possible with CSS.
Comment 2 written by William from Lagos on 4 May 2009, at 5:23 AM
But I'm pretty surprised why selectors was a bit difficult in grasping. Anybody coming from a Web Design background should pick this up easily, having been familiar with CSS.
Comment 3 written by Raymond Camden on 4 May 2009, at 5:44 AM
Comment 4 written by Gary Funk on 4 May 2009, at 8:25 AM
Comment 5 written by andy matthews on 4 May 2009, at 8:33 AM
Ray...I know you're not strong with CSS...that's cool. Your strengths lie elsewhere. The primary reason I know CSS so well is that I began my development career as a front end designer.
I'd be happy to be your sounding block for CSS questions if you like. I love CSS.
Comment 6 written by Raymond Camden on 4 May 2009, at 8:34 AM
Comment 7 written by Steve Weyrick on 4 May 2009, at 10:38 AM
Comment 8 written by Karl Snyder on 6 May 2009, at 7:51 AM
What makes jQuery most excellent is that it's cross browser compatibility is very robust.
Check the jQuery API Browser Air App... this has provided quick and dirty syntax lookup.
http://api.jquery.com/
Comment 9 written by Raymond Camden on 6 May 2009, at 8:09 AM
Comment 10 written by ZK@Web Marketing Blog on 17 May 2009, at 2:13 PM
[Add Comment] [Subscribe to Comments]