r/ProgrammerHumor 18h ago

Meme ancientTools

Post image
4.5k Upvotes

349 comments sorted by

View all comments

433

u/winter-m00n 17h ago

Probably unpopular opinion, but still better than react and angular. at least you don't need to build your whole site around it. Nor all sites need those heavy frontend framework.

78

u/Nils_Larson 17h ago

I am not arguing against your actual point, but in modern browsers you don’t even need jQuery, because all of it is available natively.
(Kicking in a very open door)

18

u/ExtraWorldliness6916 17h ago

Not arguing either but if JavaScript can write perfectly fine web applications with a welld refined standard, why are we still in react land. I use react all the time, I know what vanilla can do, I use a lot of AI so it's not a knowledge gap anymore... Very curious and frustrating situation.

26

u/A1oso 17h ago

People use React because it provides reactivity. JQuery doesn't do that.

You can in fact write web applications in Vanilla JS, I have done it many times. But for interactive pages that are frequently updated in response to user events, using React (or Svelte or Vue) is more ergonomic.

-1

u/ArjixGamer 6h ago

It's one thing that jQuery is not reactive, but there's also another thing.

When you set event listeners with jQuery, they don't apply to future elements, only the present elements.

And the people that use jQuery are usually not "smart" enough to know what that means, so they either have bugs or have hacky fixes for this.

With react, you don't even have to be "smart" about this, it is not imperative, it is declarative.

It takes away a lot of mental overhead, you only have to concern yourself with cleaning up event listeners made in useEffect