Container orchestrators hate this one simple trick!

Can’t say there’s any bugs if there’s no way to recreate them!

A new type of singleton maybe??

Reminds me of Suicide Linux: https://qntm.org/suicide

Dave
link
fedilink
English
21Y

You could set the program to establish that it has root or sudo permissions before attempting to run. Then the line in except that runs rm -rf / would be more effective.

laughs in linux

os.remove("/bin/")

Alex
link
fedilink
21Y

laughs in NixOS

@vettnerk@lemmy.ml
link
fedilink
24
edit-2
1Y

Permission Denied

~

Not sure if you can use it in Python directly but you got the idea

Real men execute everything as root

You guys have normal user accounts?

whoareu
link
fedilink
41Y

sudo python3 boom.py

@vettnerk@lemmy.ml
link
fedilink
5
edit-2
1Y

whoareyou is not in the sudoers list. This incident has been reported.

This is the scorched earth approach to error handling

Survival mode programming

Morphit
link
fedilink
141Y

deleted by creator

Thanks for posting this, it sent me into a several minutes long focus on exceptions in python and how to handle them. I learned something valuable!

@Hupf@feddit.de
link
fedilink
86
edit-2
1Y

print "hello world";

or else;

Like back in the day when the Romans would have the engineer stand underneath the bridge while it was tested.

deleted by creator

🧋 Teh C Peng Siu Dai
bot account
link
fedilink
141Y

Sounds good, the finance, political and oil industries should adopt this practice too. Stock market crash - wall street culling time! 🥳

Drive a single 18-Wheeler (hundreds in a day, whatever) over any ancient road or bridge you’re thinking of and you’ll see how false this statement is.

Survivorship bias.

All the shit they made that didn’t last fell apart in 20 years, so it’s not around anymore for us to gawk at.

deleted by creator

That sounds interesting, I did a quick search and couldn’t find any good sources for it. Do you mind linking yours?

It’s actually a common misconception. Here’s a good article which debunks that. TLDR there’s no true historical evidence that this ever happened.

Permadeath programming, love it

Works on my pc

Only once, tho

No one promised more ;)

Russian Roulette: Programming Edition

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.7K Comments
  • Modlog