Slashdot Mirror


JavaScript Devs: Is It Still Worth Learning jQuery?

Nerval's Lobster writes: If you're learning JavaScript and Web development, you might be wondering whether to learn jQuery. After nearly a decade of existence, jQuery has grown into a fundamental part of JavaScript coding in Web development. But now we're at a point where many of the missing pieces (and additional features) jQuery filled in are present in browsers. So do you need to learn jQuery anymore? Some developers don't think so. The official jQuery blog, meanwhile, is pushing a separate jQuery version for modern browsers, in an attempt to keep people involved. And there are still a few key reasons to keep learning jQuery: Legacy code. If you're going to go to work at a company that already has JavaScript browser code, there's a strong possibility it has jQuery throughout its code. There's also a matter of preference: People still like jQuery and its elegance, and they're going to continue using it, even though they might not have to.

4 of 218 comments (clear)

  1. VanillaJS Framework by lgw · · Score: 5, Funny

    I hear great things about that new-fangled VanillaJS framework. Very lightweight and fast, and already more popular than jQuery.

    --
    Socialism: a lie told by totalitarians and believed by fools.
  2. I don't get it by quietwalker · · Score: 5, Insightful

    JQuery is just encapsulating some primarily dom-related javascript mainpulation routines with the added bonus that they try to eliminate browser differences. So, when you're saying that the browser provides features that jquery was needed for, you're really saying that the browser does things that javascript is no longer needed for.

    I'm just not seeing it though. With pure HTML & CSS and a fancy new browser, can I:

    Write ajax requests and parse and conditionally apply the results to various page elements?
    Dynamically add and remove elements?
    Perform liquid resizing based on a layout approach with glue elements and fixed-but-scalable areas - that is dependent upon the size of other elements rather than explicit browser viewport height/width?
    How about perform custom input box validation?
    Maybe set the value of a text box only when a value in a linked select box is changed?
    Pop up a dialog when a button is clicked?
    Start an image upload when you drag an image over a browser region?

    In the age of ever-closer-to-desktop-application websites, I'm only seeing more and more use of javascript frameworks - of which jquery is one - and frankly I don't see how anyone could do without it. Maybe if you're making static brochure sites, I suppose, but then you weren't using javascript for that anyway.

    Maybe the original poster meant to say "is it worth learning jquery instead of another framework or library" ? Otherwise I can't see anyone who actually creates web applications for a living even asking this.

  3. Re:meh by meustrus · · Score: 5, Insightful

    Much of it involves DOM manipulation

    Yeah? Much of jQuery is about DOM manipulation. If you don't want to make a hole, don't use a drill.

    --
    I sometimes ask revealing, often ignorant-seeming questions. Maybe they're harder to answer than you think.
  4. 5 Minutes by wisnoskij · · Score: 5, Insightful

    It takes like 5 minutes to learn to use Jquery, it is used in 90% of all current websites, and is still one of the best if not the best library for dynamic DOM manipulation and has incredibly easy to use ajax requests. I cannot imagine creating a dynamic website without it.

    --
    Troll is not a replacement for I disagree.