rob cherny.com

About

My name is Rob Cherny and I'm a professional Web Developer with 16 years of experience creating Web sites and Web-based applications. This site is where I write about my work, and random other things...

Learn More

Loading...

Close Tab

Recommended

  • Introduction to JavaScript with Learning jQuery Book

    Posted 2524 days ago
    (filed under JavaScript)

    The new book, Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques is not only an excellent introduction to the jQuery library, it’s also an excellent JavaScript book. Authored by two active members of the jQuery community and that run the Learning jQuery Web site, you know you can trust the source when going through this book.

    It covers the basics of the jQuery framework, then dives into some sophisticated JavaScript concepts. These include event discussions and a slew of excellent techniques using jQuery which are actually applicable to JavaScript in general with table sorts, autocomplete, and an excellent appendix on closures.

    There is a caveat however, and it should be fairly obvious from the above discussion: the book is fairly sophisticated and may be a bit steep for those who may not know a lot of JavaScript, quite frankly. There’s a lot of great JavaScript in this book, but I would be hard pressed to recommend some of the more complex examples to someone just learning.

    The title says simple, but there’s an awful lot in this book that is not simple, particularly if you’re a beginner.

    The Contradiction of jQuery’s Audience of Users

    I’ve long been a fan of jQuery. It caught my eye since it was an enhanced selector-based library, which just seemed to make sense to me. The built-in iterators are great and the chaining syntax is real unique, almost a gimic at first glace, but when you dig under the surface, much like Simon Willison did recently, the library has a plethora of useful JavaScript tools (built in simple inheritance, looping, trim functions, etc.) and with an active plugin community, there’s much code to be had, out of the box.

    But he’s touched on the immediate contradiction of the jQuery library. It first got attention and fame due to it’s selector support (now supported by virtually every JavaScript library around) and it’s unique chaining syntax. What I’ve found is that the library appeals to beginners to JavaScript and Web designers due to how simple it makes doing some advanced tasks, and accessing these objects in a Web page with a CSS-like selector syntax.

    However, the problem is that CSS-like selector syntax is an area that a lot of hard core programmers or back-end or server-side programmers actually don’t know or understand real well. As a side note, jQuery also supports XPath style syntax for selection of DOM objects, but you tend to see those used a lot less, since the design-centric CSS audience is most common in Web design and development.

    To complete the observation, the thing is, jQuery is enormously efficient, powerful, and compact to include in pages, so where performance, extensibility, and strength of the API comes in and begins to matter, you can do incredible things with it and the library will not disappoint. But I think only a small portion of the audience of jQuery appreciates or understands this. I think that right there goes to the heart of Simon Willison’s article and commentary.

    Back to the Learning jQuery Book

    The book starts with selectors, the $() function, and moves on through events and into modern tricks of the trade in detail, with Ajax techniques and animations.

    For my tastes, it could honestly spend a bit more time on documenting the vast amount of available selectors and DOM manipulation aspects of the library, as I feel like those two parts are key to doing anything constructive with it. The examples in the online documentation only get you so far, and I often find myself trying to use the available methods in much different ways than the examples online. Maybe this feeling is just because I learn best by example, I don’t know.

    But by the third chapter it is hip deep into events, with an excellent discussion of jQuery’s very robust event support. Event support is critical to building interactive JavaScript for sure. But, I’ve found through extensive use of jQuery that I frequently still get tripped up in getting at what I need and even doing something with it, hence my comments above.

    Now, anything with an ID is easily accessed and not an issue, but where jQuery opens doors is being able to pattern match in the DOM and know with certainty you can get to any object easily, with literally a one-line statement, and do anything to it. But unlocking that can be a challenge sometimes when you get ambitious. Additionally, the DOM manipulation methods are powerful but I find obscure from time to time. Animation and Ajax effects are fairly straight-forward most of the time.

    Overall the book is well thought out and detailed, thorough with most all modern “Web 2.0” tricks and more. The book is not however a complete reference to the API’s or the definitive source necessarily for usage of the library.

    I would definitely recommend it for anyone interested in learning more about jQuery and seeing excellent examples, however I’d expect to be jumping into some deeper JavaScript code, it just so happens to using jQuery. That’s part of the other problem: are libraries really for anyone just learning? I feel someone should know how something actually works before jumping into much with libraries, but that’s because it’s in my nature to never accept anything at face value and I want to know how things work.

    The book does a great job demonstrating the jQuery library in the context of some great JavaScript, which is definitely a good thing, since the library has such a mixed audience to begin with. It’s not all child’s play, and neither should a book about it be.

  • An Inconvenient Truth

    Posted 2760 days ago
    (filed under General)

    Al Gore’s documentary on the global warming crisis. The review on the box jacket says “you owe it to yourself to see this movie”, and well, having watched it I tend to agree. He says it’s a moral and ethical issue, and watching this I tend to agree there too.

    Gore credibly debunks myth from fact and spells things out in simple terms anyone can follow — things are looking scary and the time to act is now. If you can’t act, convince those in power to act.

  • JavaScript: The Definitive Guide 5th Edition

    Posted 2760 days ago
    (filed under JavaScript)

    David Flannagan’s 5th Edition has been totally brought up to speed with modern theories on duplicating object oriented techniques in this prototype based language. He thoroughly investigates virtually every aspect of the language syntax.

    There’s been some big improvements here, and Douglas Crockford has been quoted as saying this is the one JavaScript book you should have… so ‘nuff said.

  • Pro JavaScript Techniques

    Posted 2760 days ago
    (filed under JavaScript)

    Excellent reference from one of the industries’ leading JavaScript experts today. John Resig of jQuery fame brings an great reference on modern expert techniques from object oriented methods, namespaces, packaging code for reuse and closures. This book is not for beginners mind you.

    I can’t really say much more than what’s been said already (especially because I haven’t actually finished it, but already I can recommend it), but suffice to say this should get an important place on the shelf of anyone serious about modern JavaScript.

  • CSS Mastery: Advanced Web Standards Solutions

    Posted 2998 days ago
    (filed under CSS)

    Excellent CSS resource with many basic and advanced concepts discussed. I first heard about this book from Alex who recommends it. Covers all the basics and advanced techniques as well, in particular touching on modern browser compatibility issues in the real world.

    What gets me most is how up to date with the newest advanced techniques this one is, including using negative margins to center and more. I love all the diagrams they use—so if you’re a visual person this will really help. They show multiple ways of doing the same things, which rocks because options are good to have.

  • Battlestar Galactica: The Official Companion

    Posted 3006 days ago
    (filed under TV)

    Excellent behind the scenes book on the brilliant Sci-Fi series if you enjoy the show. Has the first season summarized and features in depth discussions of each episode and how both the mini-series and first season was developed. Also discusses the characters at length.

    Great read if you enjoy the show and might be into the background behind it.

  • Pearl Jam - Pearl Jam

    Posted 3019 days ago
    (filed under Music)

    Pearl Jam’s new record is high energy, creative, and is a good all around listen.

    The first single, “World Wide Suicide”, isn’t totally indicative of the new album, but the production quality is. There’s more backup vocals, like their older stuff, there’s a real progression and building to the songs, you can just tell they put effort into it—oh, and they jam again like in the old days!

    A full review is forthcoming. You know, when it’s officially out.

  • DHTML Utopia Modern Web Design Using JavaScript and DOM

    Posted 3028 days ago
    (filed under JavaScript)

    As with most Sitepoint books, excellent resource. In this book Stuart Langridge does a great job of exploring modern, Unobtrusive JavaScript techniques for building sites without inline, ugly JavaScript sprinkled everywhere. Great examples and easy to follow.

    Even if Alex did borrow my copy months ago and hasn't returned it yet.

  • Eric Meyer on CSS

    Posted 3028 days ago
    (filed under CSS, Web-Standards)

    Eric Meyer, who for years has served the community with his excellent knowledge of the CSS specifications drives it home in this his first of two books on creating sites with CSS. He takes a very easy to follow project and task based approach to breaking down the problems and solving them in a clear and easy to read manner, as always.

    Full of techniques I use till this day!

  • Cascading Style Sheets: The Definitive Guide

    Posted 3028 days ago
    (filed under CSS, Web-Standards)

    I know great CSS authors who swear by this book as exactly what it says, their definitive guide to CSS.

    Written by the guru of CSS Eric Meyer who knows the specs inside and out, this book has excellent examples showing the way CSS should work from floats to text styles. While targeted at CSS1, its essential for the theory and foundation without a doubt.

    Like most all O'Reilly "definitive" books, it has fantastic rule by rule syntax reference.

In This Section