A new way of programming
A new way of programming
A new way of programming
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.
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.
Technically this should be the behavior of os.remove when called with no arguments
Wouldn't that default to C:? Sys32 rm still leaves userdata
Exactly, just remove the os 😅
laughs in linux
os.remove("/bin/")
Permission Denied
laughs in NixOS
Reminds me of Suicide Linux: https://qntm.org/suicide
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.
Permadeath programming, love it
This is the scorched earth approach to error handling
rm -rf /
and chill
Works on my pc
Only once, tho
No one promised more ;)
Survival mode programming
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!
Container orchestrators hate this one simple trick!
Can't say there's any bugs if there's no way to recreate them!
Russian Roulette: Programming Edition
A new type of singleton maybe??