this post was submitted on 04 Jun 2025
1022 points (98.6% liked)

Programmer Humor

24450 readers
55 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FooBarrington@lemmy.world 6 points 2 weeks ago (2 children)

Sure, but at this point it's your own fault if you don't use Typescript to keep these issues from happening.

[–] jjjalljs@ttrpg.network 22 points 2 weeks ago (1 children)

"Use a different language" is a common defense of javascript, but kind of a weird one.

[–] FooBarrington@lemmy.world 5 points 2 weeks ago

Not really, considering Typescript only adds static types to JS. It's not a different language, it's an extension.

[–] spacecadet@lemm.ee 9 points 2 weeks ago (3 children)

So, just don’t use JavaScript?

[–] matlag@sh.itjust.works 8 points 2 weeks ago (2 children)

That's also my understanding: "Javascript is great because you can use other languages and then transpile them to JS."

[–] KeenFlame@feddit.nu 3 points 2 weeks ago

Oh man machine language is so good, literally the best actually

[–] FooBarrington@lemmy.world 1 points 2 weeks ago* (last edited 2 weeks ago)

JS itself is great, I prefer it to most other languages due to the flexibility that it allows. Adding types through TS to safeguard against footguns doesn't mean you're not still using JS. You can also add the types using comments instead if you prefer it, which means you're actually writing raw JS.

[–] FooBarrington@lemmy.world 3 points 2 weeks ago

I wouldn't use raw JS for anything new, yes. Typescript however is an excellent language.

[–] sebsch@discuss.tchncs.de 1 points 2 weeks ago

Yeah! Wasm is a thing. At least rust and go are pretty neat in the browser lately.

We should leave that pile of semantics and just go further with web development