Hacker News new | ask | show | jobs
by drinchev 3499 days ago
I disagree. jQuery was the tool that acts as a "polyfill" for cross-browser compatibility. Nowadays jQuery is dying, not because of React, Angular or TypeScript, Elm. It's dying because of browser-support of `querySelectorAll`, unified event handlers, unified AJAX request API and others.

jQuery had it's time. Now you just use "vanilla" JS and it is enough. No external dependencies for your landing-page / non-web-app site.

1 comments

Here's what I tell my devs:

Yes, "you might not need jQuery". But, the first time you have to log real hours fixing a cross-browser bug that the jQuery team already took care of, I'm fucking firing you. Choose wisely.

Probably hyperbolic, but if not what you're really telling your devs is:

"If you make a mistake try to cover it up rather than be honest about it, because your arse is on the line".

I'm looking at you, XMLHttpRequest (thank you, $.ajax).
And upon hearing that I'd fucking resign.