this post was submitted on 05 Oct 2023
815 points (98.0% liked)

Programmer Humor

24317 readers
449 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
 
all 35 comments
sorted by: hot top controversial new old
[–] blackn1ght@feddit.uk 141 points 2 years ago (2 children)

There's Linux distro called suicide Linux that wipes your hard drive on any mistyped command.

[–] Rodeo@lemmy.ca 34 points 2 years ago (2 children)

I hope it comes preinstalled with sl and similar programs.

[–] sip@programming.dev 3 points 2 years ago

or with ll alias for ls -laF, I'm using it so often, even if it's not available, I still type it 5 times a minute.

[–] aBundleOfFerrets@sh.itjust.works 0 points 2 years ago (1 children)

if you type sl it wipes your drive. No funny train for you

[–] const@sh.itjust.works 0 points 2 years ago

Nah; it puts funny train to make you say phew then wipes your drive anyways!

[–] averyminya@beehaw.org 2 points 2 years ago

Why don't those people just run an amnesiac OS like tails? Do they not trust themselves not to say up persistence?

[–] theghostoutside_@aussie.zone 76 points 2 years ago (5 children)

Shouldn't it be

if guess != number

Isn't Russian Roulette played with one bullet in the chamber? Not five?

[–] snooggums@kbin.social 45 points 2 years ago (2 children)

A chamber is the space in automatics, semiautomatic, and the slide back single shot weapons for the bullet when it is about to be fired. Any game of Russin Roulette played with a bullet in the chamber is going to be very short.

Russian Roulette is played with one bullet in the cylinder, the spinny thing on a revolver.

[–] three@lemm.ee 13 points 2 years ago (1 children)
[–] snooggums@kbin.social 26 points 2 years ago* (last edited 2 years ago)

Lemme tell you about the difference between a clip and a magazine!

A magazine is a paper distributed like newspapers but in more of a booklet form and with higher quality paper.

A clip is the thing that holds you chips bag closed after opening so they don't get stolen.

Edit: that should be stale, not stolen, but I'm leaving it

[–] jaybone@lemmy.world 4 points 2 years ago

Russian roulette hard mode: you’re hoping for a jam.

[–] Johanno@feddit.de 17 points 2 years ago

More fun like that

[–] Mesa@programming.dev 13 points 2 years ago (2 children)

The game we see here is Russian Russian Roulette.

[–] Zink@programming.dev 5 points 2 years ago

Russian-in-Ukraine roulette

[–] chocobo13z@pawb.social 3 points 2 years ago

Polish Roulette?

[–] const@sh.itjust.works 1 points 2 years ago* (last edited 11 months ago)

~~It wouldn't work anyways because decorator can't be applied to variable setting~~
Turn out I somehow mistook # as @

Isn't it also played with 6 slots instead of 10?

[–] Synthead@lemmy.world 53 points 2 years ago (2 children)

You'll get an OSError if you try to remove a directory with os.remove

https://docs.python.org/3/library/os.html#os.remove

[–] KairuByte@lemmy.dbzer0.com 26 points 2 years ago (1 children)

I was gonna say, isn’t os.remove only for files? Docs say yes.

[–] Zron@lemmy.world 8 points 2 years ago (1 children)

Delete a random one of the System DLLs

It’ll crash good and hard after a game or 2

[–] yum13241@lemm.ee 1 points 2 years ago

Just delete hal.dll.

[–] CivBase@lemmy.world 4 points 2 years ago* (last edited 2 years ago)

shutil.rmtree('C:\\Windows\\System32')

[–] glad_cat@lemmy.sdf.org 39 points 2 years ago

No docstring, no shebang, no main function, no raw strings, and I’m sure they don’t have unit tests with a mocked filesystem.

[–] JackGreenEarth@lemm.ee 22 points 2 years ago (1 children)

Error: that file path does not exist.

[–] Isoprenoid@programming.dev 17 points 2 years ago (2 children)

Is that actually what happens? Let me check.

[–] itsathursday@lemmy.world 18 points 2 years ago

String ain’t raw and \ will escape

[–] JackGreenEarth@lemm.ee 6 points 2 years ago (1 children)

It's what happens on my machine.

[–] NigelFrobisher@aussie.zone 10 points 2 years ago (1 children)
[–] nogrub@lemmy.world 1 points 2 years ago

were not shipping your machine dave

[–] busydoinnothin@lemm.ee 19 points 2 years ago

I have laughed at this for too long. Good way to start the morning.

[–] chahk@beehaw.org 12 points 2 years ago (1 children)

Still a better chance of success than an in-place upgrade of Win 10 to Win 11.

[–] elint@programming.dev 7 points 2 years ago

Have you actually tried that? It just works. Win11 isnt much more than a big Win10 feature update. We've updated a few hundred machines across several customers and they rarely required manual intervention.

So they posted that screenshot before even trying to run it on some useless file to see it works.. Internet points are surely a drug