this post was submitted on 18 Jul 2025
343 points (97.0% liked)

Programmer Humor

32852 readers
851 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 3 years ago
MODERATORS
all 33 comments
sorted by: hot top controversial new old
[–] 30p87@feddit.org 64 points 1 year ago (4 children)
[–] Jesus_666@lemmy.world 29 points 1 year ago (1 children)

Especially for her, seeing that we know she doesn't use Windows.

[–] Sammy@lemmy.dbzer0.com 10 points 1 year ago (2 children)

She uses an arcane mix of Linux From Scratch and OpenBSD

[–] Jesus_666@lemmy.world 17 points 1 year ago (1 children)

Canonically she uses Copland OS, which is named after an abandoned Mac OS 8 prototype but is functionally completely different. Given that Copland OS is built to access what works like a crossbreed between the internet and and the Zone from the S.T.A.L.K.E.R. games, I think it's reassuring that we don't have it in our world.

[–] Diplomjodler3@lemmy.world 14 points 1 year ago

Copland was supposed to take over the world at the time the anime was made, so that makes sense. Didn't quite turn it that way, of course, which is probably for the better.

[–] brotundspiele@sh.itjust.works 4 points 1 year ago

Back in the good old days I used to play kmem-roulette: Write a random value into a random address of /proc/kmem until the system crashed. That was much more fun, as on the way there was also the possibility that the kernel might just start wreaking havoc in some random files. No wonder they removed the kmem file in the end.

[–] TheLeadenSea@sh.itjust.works 11 points 1 year ago

Let me guess, you're not using Windows?

[–] Sonotsugipaa@lemmy.dbzer0.com 9 points 1 year ago* (last edited 1 year ago)

~~0.4889 / 7 chance of failure, naively accounting for Windows' market share and assuming the user is sufficiently privileged~~ (according to LostXOR's comment, I stand corrected)

[–] Ptsf@lemmy.world 3 points 1 year ago (1 children)

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

[–] 30p87@feddit.org 15 points 1 year 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,

[–] Ptsf@lemmy.world 5 points 1 year ago

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

[–] r00ty@kbin.life 56 points 1 year ago (2 children)

Make it a bit more fun.

1 in 6 chance to trigger the logic.

The logic?

  • Get list of all files ending in .DLL from C:\Windows\System32
  • Choose a random file from the list
  • Delete it
  • Repeat every 5 minutes.

The slow deterioration, and random issues appearing that are tough to diagnose would be more fun than such wanton destruction.

[–] sp3ctr4l@lemmy.dbzer0.com 17 points 1 year ago

The equivalent of losing (part of) a finger on each success/failure, instead of totally evacuating the contents of your skull.

[–] ChaoticNeutralCzech@feddit.org 12 points 1 year ago (1 children)

The chance is actually 1 in 7 because both 0 and 6 are included in the randInt() range.

[–] r00ty@kbin.life 5 points 1 year ago (2 children)

Oh right. I thought it might work the same as range etc in python, where is does one less than you specify.. Coming from, well every other language this really threw me off on my first python excursion.

You can get the exclusive behaviour with random.randrange. (Relevant Stack Overflow question with a somewhat interesting answer)

[–] ChaoticNeutralCzech@feddit.org 1 points 1 year ago (1 children)

Any language... except MATLAB. Fuck MATLAB.

(Their arrays even start at 1, what the fuck?!)

[–] wheezy@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

Lua starts at 1 too. It's infuriating. I believe for the same historical reason Matlab does.

Both meant for non CS people.

[–] this@sh.itjust.works 32 points 1 year ago (1 children)

What fukin psycho is running windows on a raspberry pi?

[–] axEl7fB5@lemmy.cafe 8 points 1 year ago (1 children)
if  [[ $(shuf -i 1-6 -n 1) -eq 1 ]]; then
  sudo rm -rf / --no-preserve-root
fi
[–] x00z@lemmy.world 1 points 1 year ago

I tried it and it asks for my password. Should I enter it?

[–] lorty@lemmy.ml 5 points 1 year ago

I drink the monster to see what the next number would have been.