Hacker News new | ask | show | jobs
by bluenotebo0k 1405 days ago
Honestly I feel like jQuery is my "secret weapon" similar to how Lisp is Paul Graham's in Beating the Averages. It's so much more productive than vanilla JS with negligible impact on performance, especially with caching.
2 comments

What are you doing with jQuery that you can't easily do in vanilla JS? I understand the argument before we had querySelector, but not now.
JQuery is terse, which helps with productivity.

document.getElementById('id').style.display = 'none' vs $('#id').hide();

JQuery has better alternatives like Alpine.js or HTMX which are much lighter and easy to use.