4 ms·
Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.
by aphextron 8y ago
Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.
- dagoat 8y agoYou still need jQuery for Bootstrap
- jister 8y agoSure, why not?!
- krishanath 8y agojQuery is a library of shortcuts. Everything you can do using jQuery you can do without jQuery, but that's like saying everything you can do in Excel you can do with just a Calculator app. Yes, it is possible, but why would you want to? When you do things like drag & drop and interactive resize you have to query DOM to get position and sizes, and perform hit detection, and you have to manipulate DOM directly. jQuery is very convenient for these kinds of things.
- aphextron 8y agoI know exactly what jQuery is. I’ve used it happily for years on many projects. However it is completely obsolete in 2018 for anyone that does not need to support IE8.
- alphakappa 8y agoI may be mistaken, but sounds like you are referring to browser compatibility not being a good reason to adopt jQuery anymore. But like the parent said above, there's more to jQuery than just getting browser compatibility - it's an abstraction for UI concepts that would require writing a ton of low level JS otherwise.
- pier25 8y agoI maintain a number of widgets with jQuery for an edtech app with drag and drop, works on mobile and desktop, etc. I'm starting to rewrite those to Vue and I've found the main limitation is not the DOM access (since you can use refs) but the model logic. In Vue all data is made of primitives or dumb objects, you can't really use classes for reactive data.
- octosphere 8y agojQuery is still very prevalent, especially on the legacy-web (those websites you rarely visit, but litter the web like a plague). Think e-commerce sites, Wordpress sites, spam blogs (splogs), e-book shops - they mostly use jQuery to sell you random crap you don't need, and jQuery was added on last minute to add some sheen to an otherwise plain site.
- darol100 8y agoFrom time to time, I need to make small interaction JS, which using React or Vue will be super overkill. Instead of using vanilla JS, I just use jQuery. The biggest issue is that "small JS interaction" end up in an app. In that case, I will re-write in React.
- vivab0rg 8y agoAs long as it is a Bootstrap dependency?