Last Friday around 6:40 pm, I was cleaning up some test data on the staging server and ran a delete command on the wrong table.
It was a Friday, my bus was in twenty minutes, and the office was almost empty, so I thought I would finish quickly.
I had two windows open, one for staging and one for the real thing, and in the rush I picked the wrong tab. Luckily it was staging,
but it was the table the testing team was using for their Monday demo.
My stomach dropped. I have been working for only eleven months and I was sure I would hear about it in the morning in front of everybody.
I sat for ten minutes looking at the screen before I messaged my lead, and I wrote the message three times because the first two sounded like excuses.
His reply was, "Do we have last night's backup?" We did. He restored it himself in about fifteen minutes, then asked me to add a
coloured border to my terminal prompt so staging and the real system never look the same again. I said sorry twice and he waved it off.
That was all. No lecture, no meeting.
I did it the same evening, red for the real one and yellow for staging, and now I almost enjoy looking at it. What surprised me was
not that he stayed calm, but how much more careful I felt afterwards compared to how I would have felt after being shouted at.
I have been trying to remember this for the day I have juniors of my own. I also started reading my commands out loud before
pressing enter, which sounds silly, but it works.