Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> jQuery was making up for browser API shortcomings

While this is true, I can still code circles around frontend developers using vanilla JS.

The decline of jQuery is mostly due to the rise of webapp frameworks like React and Vue. But if you are tasked with adding like, a button to a static webpage, jQuery is still the king.



I never really knew jQuery besides the five things that I googled, so once I had to do more "dynamic" frontend things I just looked into Vanilla JS and it kind of works for me. Not sure if I had WTF-moments besides the normal "this seems to be how things work" stuff, so I think it's easy enough?!?

Only thing I always have to look up is how to make sure my script is executed once everything is done and not before and "ready()" is obviously easier than adding an event listener to "DOMContentLoaded". Yeah, had to look it up for the comment.


Simplifying interaction with the DOM is obviously a huge feature of jQuery. But also the functions are just very nicely laid out with the assumption you are doing web stuff.

$(thing).doThis() is just so perfectly terse and understandable for what it's doing. Not just writing, I find jQuery to be very, very easy to understand and read.


Yeah, you're right. Maybe I should give jQuery another look. :-)


>The decline of jQuery is mostly due to the rise of webapp frameworks like React and Vue.

Partly. Frameworks like Angular/React/Vue are a necessary byproduct of building and maintaining large codebases. But the fall of jQuery was largely a result of a more standards approach in mainstream browsers (said another way: deprecation of IE and not needing to work at maintaining consistent behavior across browsers), as well as adding traditional jQuery-like features to vanilla JS.

There really isn't a big use-case for jQuery anymore, although I will remember it fondly.


>While this is true, I can still code circles around frontend developers using vanilla JS.

My first use of jQuery was in the dark days was building UIs (with things like drag and drop, etc) that had to run on Internet Explorer and Netscape. We'd started with "vanilla" but were ending up with what was effectively two separate codebases. Moving over to jQuery let us eliminate a massive amount of duplicate code and dramatically increased our productivity.


one of the nice features of AngularJS when it came out was the inclusion of the jquery lite api for interacting with the dom.


I call bullshit on all accounts. If someone actually tasked you with adding a button to a webpage...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: