DEV Community

[Comment from a deleted post]
Collapse
 
luiscaro3 profile image
luiscaro3

I was a little disappointed with the article, I thought it would carry a little more substance. That being said, I'm a software architect (specifically UI), have been working with react for years now mostly and I have to say that depending on the project, if you need to do a quick PoC like a landing page in a couple of hours, you can get it done with jquery. With a framework you'd spend that time only setting up the environment, boilerplate code and component structure. It comes down to the use, but certainly there are less and less cases now a days where jquery will be the right choice for a project, specially at enterprise level (I'm looking at you Telerik). As with everything in life, it's always somewhere in between of shades.

Collapse
 
matthewbdaly profile image
Matthew Daly

There are better options these days for that, though.

Alpine.js gives you a Vue-like experience in terms of enabling a more declarative API for manipulating the DOM. But it doesn't require any sort of build chain, and has a footprint a fraction the size of jQuery's, so you can just load it from a CDN and start working. It doesn't handle things like AJAX requests, but then that's often a non-issue because fetch() is a strong native option these days, or you can use Axios, and the production build will still be smaller than with jQuery.

Collapse
 
luiscaro3 profile image
luiscaro3

I apologize if I wasn't clear enough, what I meant to say is that projects have different needs, some have footprint priorities while for others the footprint is not relevant. Getting a PoC up and running in 1-2 hours without having to involve node etc for instance and avoiding an additional layer of complications is a good example, where you want to either go with vanilla js or if you need a little extra power for more complex stuff jQuery is still a great fit. Again it comes down to the case and it's certainly not something to use in enterprise anymore, (if you are considering jquery over a robust framework the footprint is the least of your concerns in my opinion)

Collapse
 
po0q profile image
pO0q 🦄

Too bad, still, this is what I wanted to share. While I understand that getting the job done is the most important part in the IT business, I do believe there are better tools now to do the same in this case.

There are various ways to build a landing page in minutes without jQuery, in fact it's probably one of the best examples where it's not needed IMHO.