Large disasters are one thing, but programmers are a lot of optimists who rarely check for error conditions as trivial as the following
If Flag = '1'
do
.....
else /* assume flag is '2' */
....
end if
Rather than
If Flag = '1'
do
.....
elseif Flag = '2'
....
Else
Error in Program
...
end if