this post was submitted on 13 Nov 2024
845 points (96.2% liked)

Greentext

4604 readers
1714 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

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

I love javascript. Shit. Just. Works.

Even if you, the programmer, are a complete fucking moron, by god javascript will try to make your program run as long as possible.

[–] ReluctantMuskrat 3 points 1 month ago (1 children)

Even if you, the programmer, are a complete fucking moron, by god javascript will try to make your program run as long as possible.

I mean it might not work as intended but it'll run and not complain!

[–] [email protected] 1 points 1 month ago

god damn right

[–] herrvogel 2 points 1 month ago (1 children)

Javascript is a beautiful language where '3' - 1 = 2 but '3' + 1 = '31'.

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

Javascript doesn't "just work". It's a language originally designed to glue actions to html elements and it is fundamentally broken in ways that will be never be fixed. Weird syntax, weird type coercion, horrible base types & functions, surprises galore. Even Typescript, which is basically a precompiler, is just JS with some type checking. The only reason anyone uses either is because it is ubiquitous - people have to use it.

[–] [email protected] 1 points 1 month ago

It's the greatest language on the planet.