this post was submitted on 06 Aug 2023
553 points (91.8% liked)

Programmer Humor

19480 readers
1772 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

css can do animations, and it's much more performant then js. I hate how over-used JavaScript is on "modern" websites.
some websites are even straight up unusable or don't display anything with js disabled....

[–] [email protected] 4 points 1 year ago (2 children)

Some websites, JavaScript is necessary for doing things without overloading a server. Mostly SPAs/PWAs and such. I’m using Voyager for Lemmy right now, which needs JS, but it gives me a great experience.

But yeah, JS is often overused. Luckily, with new technologies coming out like Astro and HTMX, we should hopefully start seeing less JavaScript on pages that don’t need it.

[–] [email protected] 3 points 1 year ago

Still wayting for a native solution to AJAX.

No, not Java beans.

[–] [email protected] 2 points 1 year ago (1 children)
[–] [email protected] 5 points 1 year ago

However, it uses a lot less JS. It’s only a few lines of JS to replace an HTML element, but a lot more to parse a bunch of JSON and then alter the HTML to reflect that.