jquery is awesome. Took me like 6 minutes of fiddling around to learn. And I'm a backend dev who doesn't know 2 cents about javascript.

  • 4
    What's so great about jQuery? As a fullstack dev I'd like to know.

    Unless you need to support older browsers. Then sure.
  • 4
    @olback shouldn't you already know? No offense, just never met a fullstack dev who didn't know
  • 2
    vue.js is the new jquery
  • 3
    @olback Jquery, for when you can't be assed with vanilla and need a simple yet effective solution.
  • 2
  • 2
    @C0D4 Those are just weasel words tho and it doesn't answer his question.
  • 5
    @AleCx04 I write everything from scratch. No big libraries or frameworks required to get a div by ID or class.
  • 2
    @olback that is all fine and dandy as a student I guess. As a working professional I make solutions from scratch, not frameworks. As such I find it hard to believe that someone never bothered in knowing about jQuery, specially since I would assume that one would encounter it in the wild on an existing project. Which is normally where I find it.

    Different areas I guess :D
  • 2
    @inaba he did say it was a simple yet effective solution, which it is. You can either(for example) make an accordion from scratch with a comb of css and js magic or you can just
    $('.item').accordion(); or something like that.
    Really convenient.
    Everyone seems to loathe it, but by heavens it really did save some time in a lot of projects and still does.
  • 2
    Just today I was working on a project and needed to hide/show content on a mouse click. And jquery saved me some lines of code there :D
  • 1
    css xD

    onclick.div {
  • 2
    JQuery is awesome indeed. Don’t let the haters tell you otherwise. It comes in handy in plenty of situations. Saved my ass when I had a deadline hanging over my head.
  • 5
    jQuery is super awesome. I wanted to add two integers, and luckily, there was a jQuery plugin to save the day.
  • 3
    Please learn some vanilla js first before getting into jquery.
  • 2
    @AleCx04 Yeah but think about what "simple yet effective" actually means. You're actually doing it right by providing an example of why it's simple yet effective. Even tho using jquery ui to show why jquery is good seems a bit silly. Two libraries to do one thing yadda yadda yadda (and doing one thing that you would normally do with your bootstrap/materialize/whatever.)



    is also "simple yet effective", and it's not really using any JS or CSS magic at all.


    It's like when you hear someone say "well some people are concerned" or "some activists are concerned" or "[generalized group] think" without actually saying who those people are (and it's just like five random people)
  • 3
    @inaba section 3 doesn't open, and section 1&2 don't close... but let's not nitpick 🤷‍♂️

    Yes there's always a way to handle things in vanilla, same argument could be used against react/angular and vue seeing as they all rely on vanilla js anyway.
  • 2
    @C0D4 Fucking jquery devs can't even use an accordion right /s

    As an alternative there's the proided image


    And it's still not about not using jquery, it's about giving an empty response being silly and unhelpful
  • 3
    @inaba I'm just taking the piss. You're barking up the wrong tree though.

    Yes a lot of Jquery devs don't know shit, but I've been using JS for longer then a lot of devRanters have been alive , if I want to cheat and use a Jquery plugin in a site that already uses it... well try stop me 😅

    But I wouldn't import Jquery for the sake of "I don't know how JS works".
    JQuery is just a giant wrapper, and if that's what people want to use, then so be it.
  • 2
    @C0D4 Dude you triggered my developer ptsd by saying it doesn't work on your machine 😂
  • 3
    @inaba actually I think it's just codepen and iPhone, nothing seems to work with that combo.
  • 1
    It's simple - JQuery solves a lot of pain points.

    Yes. You can do vanilla.

    But especially when it comes down to corporate sites, which are not based on any JS framework, it can be very painful.

    Checking for ES 5 via eg Modernizr is not enough... There are still a lot of quirks in some browsers.

    I'd rather use JQuery than trying to think about getting it to work.

    The most hated shit is - especially for corporate pages - sticking / unsticking content, making tables sticky on X and Y axis with fixed headers and so on.

    Yes you can throw a bazillion of CSS at it (eg tbody rendering as block and other stuff like this) or you can try to whip up everything in vanilla JS (eg viewport calculations for scroll offset for fixed positions) but believe me. As soon as the client reports that it does not work on <random fucked up browser> you will not be happy.

    And especially CSS fuckery can open a wormhole of new bugs.

    Just using JQuery is less painful.
  • 3
    jQuery did solve a lot of pain point back then when it had to paper over the browser incompatibilities. These days are OVER. Welcome to 2019. They have already been over for some YEARS.

    jQuery itself doesn't even support old IE anymore from jQuery version 2 on, which is why 85% of all jQuery websites are still on version 1, despite security holes.

    These days, jQuery has four main use cases:

    1) Legacy projects where nobody wants to pay the cost of the rewrite - so leave shit as is until it has reached its EOL. See the 85%.

    2) Things that are as easy and much faster in vanilla JS. Requires knowing vanilla JS, which astonishingly many "devs" don't.

    3) Things that should be done in CSS. Requires knowing CSS, which surprisingly many "devs" don't.

    4) Things that don't belong on a website anyway (except for artsy demo projects). Like complex animations that can't be done in CSS.
Your Job Suck?
Get a Better Job
Add Comment