DEV Community

Ben Halpern
Ben Halpern

Posted on

Do you still work with jQuery?

For folks who still work with jQuery, for personal or professional projects, what is the overall context of this work? Do you expect this to be refactored at any point?

Latest comments (63)

Collapse
 
okyanusoz profile image
okyanusoz

These days, I use useRef in React.

Collapse
 
rexebin profile image
Rex

To me, it’s the component mental model the frameworks like React, Angular or Blazor offer makes the difference, making the app well structured and maintainable. It’s not easy for beginners or even experienced programmers to get in to habit to write components as building blocks with tools like JQuery.

Collapse
 
gryp17 profile image
Plamen Ivanov

I still use it in my personal projects (often together with Vue or React) when I need to touch stuff on a lower level (modify the DOM directly, write complex selectors etc.), which doesn't happen that often, but I would rather write a fast one liner than deal with the vanilla javascript DOM manipulation methods.

Collapse
 
__manucodes profile image
manu

Yes, I still work with jQuery for my app, but only because the libraries I use require jQuery to work.
Otherwise, I just use vanilla JS, because it is robust.

Collapse
 
nitishdayal profile image
Nitish Dayal

Still use it professionally. Frankly I've never worked anywhere that didn't have some legacy jQuery somewhere in the application. As much as I'd love to go through and rip it all out, it's not a business priority and I have enough on my plate.

Collapse
 
mdamaceno profile image
Marco Damaceno

Yes, I still use it. Jquery is just a tool. A tool never gets old.

Collapse
 
jeydotc profile image
Jeysson Guevara

I was in a project that used jQuery quite heavily. It was too old, big and complex to get it replaced, the backend and frontend coupling also made any migration idea basically impossible.

Yet, it was really fun to explore ways to insert React in the new pages, cope with React/jQuery conflicts and all that stuff.

Collapse
 
ludamillion profile image
Luke Inglis

Nope but I think the main point is that hating on jQuery just because it is jQuery is cargo-culting.

Thread Thread
 
tylerlwsmith profile image
Tyler Smith

That's the point I was trying to make. There's nothing wrong with preferring other tools over jQuery or opting for vanilla JS.

Collapse
 
domonic profile image
domonic • Edited

So when they add static typing to shitescript (chromescript) the crappy language for manipulating xml documents, are we then to assume you will bin/wrewrite all your current vomit/text files that get transexualised into... normal js?. tadaaa!. js devs are an embarasment. listen to yourself. 40% of the web is wordpress and doesn't care for your crap. were waiting for js to die. Everyone on the planet older than 10 years old know for a fact .js is wank and will be replaced soon as others can target the browser. But apple/google drag heels on purpose to get you on the apps. The webs been stuck in the 90s for a decade and is dying a slow death. Desktop experience is dead.

Collapse
 
dianale profile image
Diana Le

Professionally we'll probably still be using jQuery for a while. We build a large number of sites every year and we have so many types of functionality that rely on jQuery plugins: custom sliders, media lightboxes, form validation, interactive data tables, etc. that it would take a bit of time to figure out compatible vanilla versions. We looked at switching to vanilla JS a few years ago but unfortunately that was before ES6 and the syntax wasn't friendly and we still had to support older versions of IE.

I would love to slowly start updating the code but unfortunately when you have entire design systems built around the existing plugins and we're efficient in terms of building sites, it's hard for us to switch and make the business case for it.

Collapse
 
eljayadobe profile image
Eljay-Adobe

No. I had extensive experience with jQuery β€” including rewriting it from scratch (long story) β€” and I am a big fan of Vanilla.js.

Although I do use π‹π„π‘½πˆπ‘¨π“π‡π€π Programming's helper, and I define it exactly that way (verbatim).

Collapse
 
philw_ profile image
Phil Wolstenholme

There's also Cash, which replicates much of jQuery, including its lovely chained API, but uses modern JavaScript below the hood: github.com/fabiospampinato/cash

Collapse
 
sukrosono profile image
Adi Prasetyo

Yes, code simplicity. No, why, Jq core not yet release major version CMIIW.

Collapse
 
natalia_asteria profile image
Natalia Asteria • Edited

No. I don't work with it anymore and don't have any requirements to work with it.

Simply being that it's unneeded for most of my works, even if I do need selectors there is Document.querySelectorAll.

Collapse
 
pcmagas profile image
Dimitrios Desyllas

yeap for a quick website it is fine. For large scale website though hmmm I do not know depending the situation.