this post was submitted on 08 Jun 2025
837 points (97.2% liked)

Programmer Humor

24045 readers
1321 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
 
(page 2) 40 comments
sorted by: hot top controversial new old
[–] JakenVeina@lemm.ee 24 points 2 days ago

"npm install" in particular is getting me.

[–] grue@lemmy.world 19 points 2 days ago (1 children)

This implies that Javascript will get moving in the correct direction once it finishes installing dependencies, but it's just going to get fucked with incorrect behavior that doesn't even have the courtesy to throw an actual error.

[–] jj4211@lemmy.world 1 points 1 day ago

incorrect behavior that doesn’t even have the courtesy to throw an actual error.

To be fair, this can be said of C. A C executable only really forces a crash out when you royally screw up beyond the bounds of your memory. Otherwise functions just return a negative value and calling code that never bothers to check just keep on going.

Golang is similar, slightly mitigated that if you are assigning any return value from a function, you must also explicitly receive an error and you know full well that you are being lazy if you don't handle it. Well unless you use a panic/recover scheme but golang community will skewer you alive for casually suggesting that and certainly third party libraries aren't going to do it that way.

[–] glorkon@lemmy.world 3 points 1 day ago (1 children)

No NullPointerExceptions in Kotlin.

[–] anton@lemmy.blahaj.zone 4 points 1 day ago (1 children)
load more comments (1 replies)
[–] Lemminary@lemmy.world 5 points 2 days ago

Noob should've used PNPM

[–] GreenKnight23@lemmy.world 3 points 2 days ago

and then there's ruby who didn't even qualify but still would have done better than the others.

[–] Redkey@programming.dev 2 points 2 days ago (2 children)

"NPM install" isn't going to be the direct result of a race condition in JavaScript. And while I'm not familiar with Python, I'd guess that an "Indentation error" wouldn't be one either. A missing library or syntax error that's only discovered by executing a particular branch is still just a missing library or syntax error, not a race condition.

Also, while Node.js is popular, it isn't an integral part of JavaScript in the way that the other errors are integral to their respective languages.

[–] lime@feddit.nu 16 points 2 days ago (1 children)

none of these are race conditions, they're just runtime errors. python only parses code when it is about to run that block so you can absolutely get a crash from bad indentation.

in my experience, the js world's focus on developer ergonomics has absolutely yielded some insane situations where running an installed script has caused it to start downloading more dependencies. however, this has unfortunately started happening in python too lately.

[–] JackbyDev@programming.dev 2 points 2 days ago (1 children)

NullPointerException can be related to a race condition.

[–] lime@feddit.nu 3 points 1 day ago (1 children)
[–] 0x0@lemmy.zip 5 points 1 day ago

I had to come up with a title, this was it.
It's a cartoon.

[–] EffortlessEffluvium@lemm.ee 1 points 2 days ago

Python? That’s an embarrassed GAMBAS!

load more comments
view more: ‹ prev next ›