News for hackers. Stuff that matters.
Re:I loved jQuery, and still do (2019) by cptrp2101 on Tuesday June 29, 2021 @11:33AM (#27677355)
I had a big post but deleted it all. I can more concisely say this:

The people here saying they still use it have so far demonstrated what I always say. If you're using jQuery, it's time to go back and relearn javascript. Most people should REALLY research the querySelector and querySelectorAll DOM methods.

I've always felt that jQuery encourages you to let your skills stagnate and you don't learn what your code is actually doing. Learn what the current spec has to offer. You don't need another dep just to target dom nodes ffs.

Re:I loved jQuery, and still do (2019) by audessuscest on Tuesday June 29, 2021 @11:54AM (#27677682)
I disagree, jQuery is still nice for some complicate dom manipulations and still simplify it a lot. Of course I'm not saying you can't do that without it, but saying if you use jQuery you doesn't know JS doesn't make sense.
Re:I loved jQuery, and still do (2019) by racl101 on Tuesday June 29, 2021 @11:46AM (#27677565)
For new projects I agree. Go jQuery-less.

But for existing projects that still work well and for which there is no reason or gain from updating the code and, for which, time and money would be spent for what is really a lateral move, I think it's fine to leave it as is.

And there are many projects like this where the JavaScript barely changes, jQuery is holding it in place and nicely and there's hardly any technical debt. There's no incentive to spend the money and time. Making a developer feel better is not really worth it in these situations unless they'd like to work for free.

Re:I loved jQuery, and still do (2019) by cptrp2101 on Tuesday June 29, 2021 @11:53AM (#27677677)
I agree. No need to go into something that exists and do a big refactor to pull it out. I'm advocating for not adding it to things you start now.
Re:I loved jQuery, and still do (2019) by andybak on Tuesday June 29, 2021 @03:45PM (#27680815)
> If you're using jQuery, it's time to go back and relearn javascript.

I've roughly as fluent in vanilla as I was in jQuery and I still think jQuery was a nicer, more elegant, more humane API to the DOM.

Re:I loved jQuery, and still do (2019) by hobs on Tuesday June 29, 2021 @01:07PM (#27678731)
I've never really learned javascript in the first place - every time I try to learn I get caught up in a mix of versions of javascript(or ecmascript?), build systems, and just use "..." (coffeescript(lol), typescript, some node build system magic)

I build (barely) working websites with jquery and html and css though, having the "this is the one way jquery would do this and ignore all that other crap" value is high to me for that very reason - I work mostly on databases and having to learn the current spec every 2 years or whatever you web sickos are doing suuuuuuucks.

Re:I loved jQuery, and still do (2019) by Tarucho on Tuesday June 29, 2021 @04:45PM (#27681490)
It´s been a while since I coded some front-end. What about issues with different browser implementations? jQuery used to handle those discrepancies.
Re:I loved jQuery, and still do (2019) by austincheney on Tuesday June 29, 2021 @05:19PM (#27681864)
> Most people should REALLY research the querySelector and querySelectorAll DOM methods.

Query selectors are like slow motion drowning in syrup. They are so astonishingly slow. They are also limited in what they can do.

Just learn the DOM. It can be learned in a single afternoon but for some reason people will fight you to death on this and then stake their careers on it like a heroic battle that nobody cares about.

Re:I loved jQuery, and still do (2019) by sam0x17 on Tuesday June 29, 2021 @12:00PM (#27677796)
Have fun when your page randomly gets visited by IE7 running behind some ancient corporate firewall.
Re:I loved jQuery, and still do (2019) by zackify on Tuesday June 29, 2021 @11:36AM (#27677405)
i couldn't agree more!
Re:I loved jQuery, and still do (2019) by earthboundkid on Tuesday June 29, 2021 @04:28PM (#27681305)
If you're still using jQuery, maybe you don't enjoy web development, and you should do something you enjoy instead.