Jack Welch in the book â€œWinningâ€ said: â€œPrevention is by no means a perfect science, but itâ€™s your first line of defense against a crisis. Donâ€™t rely on hard experience to build your immunity â€“ unless you have to.â€
Thatâ€™s great advice for anyone and even better for a programmer. In programming, a little bug can cause a big problem, even crisis sometimes.
Some of the lessons Iâ€™ve learned:
1) Test fully and test everything related, not just the part updated.
2) Avoid pushing out code to sites in the last minute of a Friday afternoon if possible. Sometimes itâ€™s tempting, but itâ€™s better to wait until a Monday.Â So youâ€™re around if anything happens.
3) Document or comment the code adequately. Well documented code helps to reduce bugs, especially for the code used far less common.
And it helps to have super rock support stars who act quickly!