Junior dev's code worked in tests, deleted data in prod (www.theregister.com)
from MirchiLover@beehaw.org to technology@beehaw.org on 21 Jul 18:51
https://beehaw.org/post/21218034

#technology

threaded - newest

TehPers@beehaw.org on 21 Jul 21:12 next collapse

First dev, seems like an honest mistake and not on them. They weren’t properly informed of the schema, and seniors signed off before the script was run.

Second dev - it happens, but this is why backups are crucially important, and always test the code before running it on prod, even if it’s a short script like this one.

chahk@beehaw.org on 21 Jul 22:22 collapse

If you didn’t take prod down at least once in your career, are you even a developer?

floofloof@lemmy.ca on 21 Jul 23:37 collapse

I remember learning about operator precedence in SQL the hard way at 4pm on a Friday. I wasn’t popular.

Moonrise2473@feddit.it on 21 Jul 21:23 collapse

At least not as bad as that one that let some LLM to control the server then get pissed at it when it deleted the production database theregister.com/…/replit_saastr_vibe_coding_incid…