Live data from Hacker News

Just Use jQuery

twitter.com

1–10 of 41 posts

Re: Just Use jQuery

#4
Dynamic forms, push and page loads are part of the Rails stack. For everything else (which usually isn't a lot) I use jQuery and always have. Sometimes pure JS even.

I never got the hype honestly. However I have been happy with my stack ever since, would I be 10 years younger I may would do node and react as well.

Re: Just Use jQuery

#8
post #5

Or just use vanilla JS

I like being able to do elem.remove() instead of elem.parentNode.removeChild(elem), and elem.prepend(other) instead of elem.insertAdjacentElement('afterbegin', other). There's loads of stuff like this.

The DOM API does not spark joy.

Re: Just Use jQuery

#9
I often make a similiar joke when I am struggling with microservices related bugs or architectural designs.

1: Just use apache + php

2: Use microservices, service meshes, k8s etc.

3: Just use apache + php

Cheap joke though, although it was fun, applications and demands have changed. Especially in the environments I work in today. Although I often, as an excersize, question myself why stuff got so complicated and if this really is the way it should work. And tbh, sometimes the answer, in my opinion, is no.

Re: Just Use jQuery

#10
post #5

Or just use vanilla JS

Or just don't use JS

Modern CSS and HTML's built in elements are better at a lot of the things people use JS for.

I think as coders we feel most comfortable reaching for JavaScript first, when really we should be doing as much in HTML itself as possible, then prettying it all up with CSS, and then finally adding some JS for interactivity such as client side form validation.

Post reply on HN