4 ms·
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
by cptrp2101 5y ago
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.
- zackify 5y agoi couldn't agree more!
- racl101 5y agoFor 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.
- cptrp2101 5y agoI 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.
- audessuscest 5y agoI 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.
- sam0x17 5y agoHave fun when your page randomly gets visited by IE7 running behind some ancient corporate firewall.
- hobs 5y agoI'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.
- andybak 5y ago> 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.
- earthboundkid 5y agoIf you're still using jQuery, maybe you don't enjoy web development, and you should do something you enjoy instead.
- Tarucho 5y agoIt´s been a while since I coded some front-end. What about issues with different browser implementations? jQuery used to handle those discrepancies.
- austincheney 5y ago> 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.