this post was submitted on 18 Jul 2025
266 points (96.2% liked)

Programmer Humor

25080 readers
1064 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
[–] Ptsf@lemmy.world 3 points 19 hours ago (1 children)

Are you sure? From what I can tell there's a 5 in 6 chance of catastrophic failure.

[–] 30p87@feddit.org 11 points 19 hours ago (1 children)

First of all, 1 in n. Second, 0...6 has amount 7 (len(0, 1, 2, 3, 4, 5, 6) == 7), so therefore 1/7.

Also,

collapsed inline media

[–] Ptsf@lemmy.world 4 points 18 hours ago

Fair, I was trying to be cheeky and here you are shutting me up with a compiler level "nope". Take your +1.