this post was submitted on 16 Mar 2025
790 points (98.2% liked)

Programmer Humor

22752 readers
510 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
790
C++ (ani.social)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 66 points 1 month ago (7 children)

This is why I will never touch Javascript again. Long ago when I worked on web stuff, half my workflow was spent in the debugger tracing garbage to find where a typo was. The industry moved to Typescript, and now assuming the strictness checks are enabled, if some Typescript transpiles successfully, I can be 95% sure whatever fuckup I observe at runtime is a logic problem.

Weakly typed languages were an awful idea. But in general, if the compiler isn't able to detect most runtime issues (like with C++ here), it's not going to be the most productive language to use for building solutions compared to smarter alternatives.

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

I've thought about moving to typescript. Do you have suggestions for a 20+ year JavaScript dev?

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

Just try it. You can usually convert a single file at a time. Start small (or even with a pet project)

load more comments (2 replies)
load more comments (5 replies)