(no title)
darrencauthon | 12 years ago
if (error_of_fifth_kind)
goto fail;
goto fail;
if (error_of_sixth_kind) goto fail;
The_truly_important_code_handling_non_erroneous_caseMy question: If the "truly important code" is really that important, where are the unit tests to verify that it "handles" the "non erroneous case????"
Test. Your. Code.
mikestew|12 years ago
Take it as the quite anecdotal evidence it is, but to me it explains a lot.
loumf|12 years ago
leephillips|12 years ago
The blame for these fiascos, and for the goto fail bug, getting out the door lies not with the programmers, who can not avoid making mistakes, but the with the CEO and other management, who decide how to allocate resources.
[1]http://tomkarpik.com/articles/massive-data-loss-bug-in-leopa.... [2]http://discussions.apple.com/thread.jspa?messageID=12758081&.... [3]http://lee-phillips.org/iphoneUpgradeWarning-4-2-1/
sparkie|12 years ago
Jtsummers|12 years ago
[1] http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS
usefulcat|12 years ago
darrencauthon|12 years ago
Mistakes always happen. Even if I dedicated myself to using braces everywhere, my mistake might be that a) I put the braces in the wrong place, or b) I forgot to put the braces.