DEV Community

Discussion on: What was the worst bug you've ever written?

Collapse
Β 
jake profile image
Jake Casto β€’

I was messing with a (dumb) co worker. I told him that β€˜rm -rF /β€˜ would fix all issues in his code. As a joke I added it at to the top of the loader for our web app... I accidentally pushed it to a production server. Long story short I lost my job and had to rewrite everything.

Collapse
Β 
terceranexus6 profile image
Paula β€’

Damn, this is hardcore

Collapse
Β 
dfellini profile image
Dan Fellini β€’

Epic. I love it.

Collapse
Β 
ben profile image
Ben Halpern β€’

Are you being serious? That is remarkable.

Collapse
Β 
jake profile image
Jake Casto β€’

I’m dead serious.

Thread Thread
Β 
rogerogeroger profile image
πš“πš˜πš•πš•πš’ | πš πš’πš•πšŒπš˜ β€’

that's the Chicago Fire method of fixing things-- burn it all down, and start over

Collapse
Β 
mpeyper profile image
Michael Peyper β€’

I think you win this round or "who's made the biggest mistake"

Collapse
Β 
andy profile image
Andy Zhao (he/him) β€’

Oh man... My heart really sunk for you...

Collapse
Β 
jake profile image
Jake Casto β€’

It did fix all code issues though :)

Collapse
Β 
codemouse92 profile image
Jason C. McDonald β€’

Yikes! This is exactly why we tell people not to make light of death commands. :P You make that mistake once, and never again!

Collapse
Β 
alephnaught2tog profile image
Max Cerrina β€’

Such a benign version, but I still remember how super upset I was as a kid and someone told me alt+f4 would refresh the page or something.

Thread Thread
Β 
rogerogeroger profile image
πš“πš˜πš•πš•πš’ | πš πš’πš•πšŒπš˜ β€’

"there's this really cool Gameboy cheat code for Tetris, if you press 'Select, Start, B, and A' all at the same time" is a really cool/cruel joke kids of the early 90s would tell each other ...

Thread Thread
Β 
rogerogeroger profile image
πš“πš˜πš•πš•πš’ | πš πš’πš•πšŒπš˜ β€’

more related to your benign example (and even more benign): when i was first really tinkering with Linux back in like 2001/2002, i couldn't figure out how to get out of this program i was using (you'd think it would be Vi, but it was probably just a Man page) and a co-worker suggested Alt-F4-- while that did technically get me unstuck from my issue, it took me another day or so to figure out what i'd actually done

Thread Thread
Β 
codemouse92 profile image
Jason C. McDonald β€’

Let me guess - erases scores?

Thread Thread
Β 
rogerogeroger profile image
πš“πš˜πš•πš•πš’ | πš πš’πš•πšŒπš˜ β€’

it reboots the device!

Thread Thread
Β 
moopet profile image
Ben Sinclair β€’

On IRC it'd be "use /quit bugging me " to ignore someone.

Collapse
Β 
pgoodjohn profile image
Pietro Bongiovanni β€’

I once ran rm -rf / in a virtual machine just for fun to see what it would happen.

The VM had some shared disks with my actual OS and it started deleting everything that I had on my desktop and some other important folders.

I was long due for a backup so I ended up losing a crap ton of data, but now I will never forget to check for shared disks when i'm working in a VM.