It’s Easy to Fall in Love with jQuery

By Shayne Tilley
We teamed up with SiteGround
To bring you the latest from the web and tried-and-true hosting, recommended for designers and developers. SitePoint Readers Get Up To 65% OFF Now

jQuery: Novice to NinjaA framework that condenses lines of clunky JavaScript into elegant, concise code is a temptation too hard to ignore.

This popular library has overtaken its competitors because it radically transforms how you perform animations, add Ajax interactivity, and integrate rich UI components into your website.

But while it all sounds great, too often people have no idea where to start.
If that’s you, your problem is now solved!

Earle and Craig have taken this complex and detailed topic and condensed it into a step-by-step guide that’s easy to use.

Introducing SitePoint’s first book of 2010:

jQuery: Novice to Ninja Image
jQuery: Novice to Ninja

by Earle (Mr Speaker) Castledine and Craig Sharkie

With this brand new book, you’ll master all the major tricks and techniques that jQuery offers. Even a fledgling web developer will be able to make jQuery work straight out of the box!

jQuery: Novice to Ninja is:

  • perfect for any jQuery user, regardless of whether you’re at the beginner, advanced, or somewhere in-between stage
  • relevant, being an up-to-date guide that thoroughly covers the latest jQuery, version 1.4
  • highly practical, offering out-of-the-box solutions that enable you to be productive immediately

Grab your own copy today so you can use your jQuery ninja skills to unleash some powerful jQuery of your own!

We teamed up with SiteGround
To bring you the latest from the web and tried-and-true hosting, recommended for designers and developers. SitePoint Readers Get Up To 65% OFF Now
  • Should one learn JS first before jumping into learning jQuery?

  • Chris

    I always found scripting difficult …
    The most I can do is coding HTML and CSS …
    The way I see JQUERY it is using a library of Javascript components so as not to have to handcode all the lines…
    1 – Is it so …?
    2 – Is it simple …?
    3 – If not so simple, can your book help someone not into programming to get a grip on it ….?

  • jQuery works great until you need to use the reserved word this as part of a class that has event handlers, or do anything involving a scope change – then it just falls apart. Prototype may tamper with object prototypes as part its makeup (hence its name), but jQuery’s rewriting of this to refer to the element an event raises on is just as great if not greater a sin.

    Add in the fact that jQuery’s author, John Resiq, considers anyone who uses classical inheritance an idiot, and you have a recipe for a library I really don’t want to support. It troubles me that jQuery has taken the lead from prototype because I really consider it to be the inferior of the two libraries by considerable margin.

  • Louis Simoneau

    @SMDStudios and @Chris: we tried really hard to make the book accessible to learners without a background in JavaScript, and I think we’ve succeeded. As Earle and Craig mention in the podcast interview (worth a listen), you’ll probably end up investigating JavaScript as you progress deeper into your jQuery journey and want to understand how things work, but to get started, if you want to do cool stuff on your page you can learn a few simple jQuery concepts and apply them very quickly, since much of the syntax is derived from CSS.

  • jQuery code may be concise, but elegant it is not!

    Whether to spend time learning something like jQuery, vs whether to invest the time learning the language properly, really depends on what you want to do.

    If your interest is pragmatic – you just want to “make things work”, and you don’t really care how it works, then learn jQuery.

    If your interest is more academic – you’re interested in actually learning to program, and in the structures and formats of programming languages (and you want to make things work) then learn JavaScript properly.

    SitePoint has books for both :)