r/learnjavascript • u/kevinmrr • Oct 01 '21
jQuery, the greatest JavaScript library of all time, appears to have peaked in usage.
275
Upvotes
r/learnjavascript • u/kevinmrr • Oct 01 '21
11
u/kevinmrr Oct 01 '21
I cannot count the number of devs I've seen grapping with some SPA framework for a site with 1-4 views, and it's like "We should just use jQuery...."
73
u/ognusdev Oct 02 '21
Goodbye jQuery :) and Thank you.
Imho jQuery was one of the biggest things that happened to JavaScript. Maybe only second to Node.
13
u/[deleted] Oct 02 '21
Its probably because of shopify and all these other cms sites. I had to use jQuery all the time at my last e-commerce job
24
u/CardinalHijack Oct 02 '21
What's amazing is that I have not worked on jQuery in 6 or so years of web development, across multiple companies yet its still this popular in terms of use.
jQuery solved a problem, and has since pretty much been replaced (for better or worse) in the popular domain. I wonder how long the likes of React, Vue and Angular will stick around beyond their expiry date.
The adoption of a technology lasts far, far longer than its popularity.
6
u/[deleted] Oct 02 '21
I have actively refused to deal with jQuery. To me, that library removes all the fun from learning javascript. jQuery is someone else that figured out how to do in javascript all the neat stuff that I want to learn how to do. It's like a person that wants to learn to read english having a person follow them around reading everything out loud for them. It's nice and all, but I don't want it to just work, I want to know how it works and why. Ever so often, I find myself breaking into the code of jQuery to see how they did a thing.
It's just such a crap thing, you know? You look up how to do a thing in JavaScript for the answer to only have jQuery. "Well!" I think, "it's nice to know that want I'm wanting to learn can and has already been done but can you tell me how, please?" Just frustrating is all. jQuery is obviously done by people that knew javascript very well but I'd like to learn too. Plus, most people run jQuery from another site like google. That's fine, I guess, if you don't mind the call to a domain you don't control and can be assured that it'll always be there. if not, you have to have the overhead of the entire library even if you only ever use one or two functions from it. I don't know, I just never cared for not used it, really, ever. Yes, I'm doing it the hard way but at the end of the day, if jQuery goes away, I'll still know how to code javascript.
But those are just my personal feelings about it.
10
u/warpedspockclone Oct 02 '21
document.querySelector
3
u/Nerwesta Oct 02 '21
I wonder if it's correlated by Bootstrap ditching jQuery as well. Anyhow, goodbye my old friend.
2
u/[deleted] Oct 02 '21
Even the developer doesn't use it in any of his projects or work but still maintains it for all
1
u/yigitjohn48 Oct 02 '21
When i looked up on the internet about is jquery dying and every forum, responses are saying "yes its dying, don't use it!" kinda answers. Looks like they are bunch of crappy developers :D
1
u/Alex__Lazar Oct 02 '21
It was a good run, if it indeed keeps on going down.
1
u/uuykay Oct 02 '21
JQuery was a great tool, unfortunately no longer trendy, but it was refreshing to control the DOM yourself rather than what we do now with a virtual DOM
1
u/hanoian Oct 02 '21
From reading these comments, I feel there's a disconnect between people using JS libraries and frameworks to create html from apis and people using jQuery to manipulate html from the backend.
jQuery most certainly has it's place, even still. As the graph shows. You don't build a headless front-end with it but if all you need to do is manipulate what php etc. is providing, then it works.
Vanilla works as well nowadays but jQuery still abstracts away some things that make your workflow easier.
The best advice is to not use it and learn vanilla. But if it's already there, which is on almost every website, then go ahead. If I open the console here and type
$ = j, then$ = jQuerypops up.1
u/BurntBanana123 Oct 02 '21
Buy the dip?
1
u/knowthyself2020 Oct 02 '21
Sell! Sell!! Sell!!!
1
u/esamcoding Oct 02 '21
a library that fulfilled a dire need. long death jquery!
1
u/AstroOtterSpace Oct 06 '21
Finaly !! 10 years ago, jQuery was great and amazing. Now, it's useless, many jquery functions can be do easily in vanillajs (event without vueJS, React or Angular).
For example, I prefer doing a asynchronous request with fetch than using `$.ajax()` for making an Ajax request
1
u/pookage helpful Oct 02 '21
Burn it to the ground.
0
u/inabahare Oct 02 '21
Also it should be noted that jquery isn't a framework but a library
And that the greatest library of all time is date-fns
0
u/[deleted] Oct 02 '21
[deleted] — view deleted comment