A new way of programming

389 points · 38 comments · view on lemmy.world

38 Comments

Hupf@feddit.de · 88 pts · 3y

print "hello world";

or else;

Aurenkin@sh.itjust.works · 61 pts · 3y (7 replies)

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

bob_wiley@lemmy.world · 16 pts · 3y (4 replies)
[ removed ]
tehcpengsiudai@lemmy.world · 17 pts · 3y

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

sudo22@lemmy.world · 15 pts · 3y

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.

ch00f@lemmy.world · 3 pts · 3y (1 reply)

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.

bob_wiley@lemmy.world · 2 pts · 3y
[ removed ]
JackGreenEarth@lemm.ee · 10 pts · 3y (1 reply)

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

dukk@programming.dev · 9 pts · 3y

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.

mvee@lemmy.ml · 25 pts · 3y (3 replies)

Technically this should be the behavior of os.remove when called with no arguments

GlitchyDigiBun@lemmy.dbzer0.com · 4 pts · 3y (2 replies)

Wouldn't that default to C:? Sys32 rm still leaves userdata

mvee@lemmy.ml · 3 pts · 3y (1 reply)

Exactly, just remove the os 😅

treesoid@lemmy.world · 2 pts · 3y

os.del_universe()

For quantom bogo sort

NorthWestWind@lemmy.world · 23 pts · 3y (8 replies)

laughs in linux

programmer_belch@lemmy.dbzer0.com · 10 pts · 3y (7 replies)

os.remove("/bin/")

vettnerk@lemmy.ml · 28 pts · 3y (5 replies)

Permission Denied

Hotzilla@sopuli.xyz · 10 pts · 3y (1 reply)

Real men execute everything as root

flashgnash@lemm.ee · 11 pts · 3y

You guys have normal user accounts?

kionite231@lemmy.ca · 5 pts · 3y (1 reply)

sudo python3 boom.py

vettnerk@lemmy.ml · 6 pts · 3y

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

vkirlin@lemmy.world · 1 pts · 3y

~

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

Ultra980@lemmy.world · 3 pts · 3y

laughs in NixOS

Knusper@feddit.de · 17 pts · 3y (1 reply)

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

bhez@lemmy.ml · 2 pts · 3y

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.

clutchmatic@lemmy.world · 16 pts · 3y

This is the scorched earth approach to error handling

james@lemmy.jamesj999.co.uk · 15 pts · 3y

Permadeath programming, love it

Morphit@feddit.uk · 15 pts · 3y

speaker_hat@lemmy.one · 10 pts · 3y

rm -rf / and chill

LuckyCharmsNSoyMilk@lemmy.dbzer0.com · 9 pts · 3y

Survival mode programming

tracyspcy@lemmy.ml · 9 pts · 3y (2 replies)

Works on my pc

clutchmatic@lemmy.world · 5 pts · 3y (1 reply)

Only once, tho

tracyspcy@lemmy.ml · 6 pts · 3y

No one promised more ;)

ProcurementCat@feddit.de · 9 pts · 3y
[ removed ]
mvirts@lemmy.world · 8 pts · 3y

Container orchestrators hate this one simple trick!

JohnSaveourSocks@lemmy.world · 5 pts · 3y

Russian Roulette: Programming Edition

AstralWeekends@lemm.ee · 5 pts · 3y

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

pythonoob@programming.dev · 3 pts · 3y

A new type of singleton maybe??

thepiguy@lemmy.ml · 2 pts · 3y
[ removed ]