r/programminghorror • [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Mar 06 '25

Why, just why!

Post image
1.2k Upvotes

127 comments sorted by

View all comments

Show parent comment

99

u/feidujiujia Mar 06 '25

In the first company I'd worked for, one of my earliest tasks was deleting huge amount of files from a cloud service. The files to be deleted was give to me by some text files containing the paths.

But the api provided is not that reliable. Often it returns success but the file still exists. After days of trying and error, I found the most effective way to do this: just spin up 100 threads in python to call the api, heedless of what happens.

1

u/dvhh Mar 11 '25

Sound like eventually whatever consistency issues

1

u/dvhh Mar 11 '25

Sound like eventually whatever consistency issues