DEV Community

Discussion on: ¿Is using Jquery a bad practice nowadays?

Collapse
 
vitalcog profile image
Chad Windham

The reason jquery has fallen out of favor isn't just the rise of compile to front-end virtual dom libraries/frameworks (which is a big part of it), but more so that ever since the ES6 update years back now, javascript improved a lot. The thing is, all the problems that jquery solved years ago, just aren't a problem anymore. I've been helping to teach at a bootcamp part time now for a little while, and my primary gripe with the current curriculum is that it introduces jquery shortly after we start teaching javascript. The problem with that, is now they are actually learning two things. Shortly after that we start with node for backend stuff so now they are back to vanilla js. After that we hit up react, so jquery is useless there too (you could technically use jquery with react but it's no bueno, would cause more problems than it solves IMO).

To me, that micro ecosystem of the class room illustrates the current problem with jquery. It is a better use of your time to learn vanilla js better than to use the jquery library. Why? Because the better you get at vanilla js the easier it is to jump from framework to framework, use 3rd party libraries, etc. Any amount of time spent using jquery could instead be used learning vanilla js, which is more useful (it even helps you fix/write code using jquery when you run into it!). By removing the abstraction of jquery you'll actually grow faster as a developer.

Ultimately, there is nothing wrong with jquery, but I'll tell you the same thing I tell anybody starting out. If you can't do the same things just as fast with vanilla js as you can with jquery, you've done yourself a disservice.

Btw, I started learning web development in my 30's as well, keep at it 👍

Collapse
 
samjakob profile image
Sam (NBTX)

To be honest with document.querySelector and HTMLElement.classList, I'm finding that I only need axios anymore if I'm just building a quick project. That said, as soon as fetch matures a bit I'm going to use fetch and drop axios.

Collapse
 
codefinity profile image
Manav Misra

💯 on the gripe with the bootcamp curriculum! I am in the same spot with the bootcamp I am currently teaching with. In fact, they even spend some time on jQuery UI - yes, that thing that hasn't had an update since Sep. 2016. 🤮
It's for this reason that currently I don't plan to return after my contract is up.