Re:How to find size of an array in C without sizeof
by mannykannot on Monday December 26, 2016 @07:44PM
(#13260584)
If you are only looking at probability and cost-to-fix you are overlooking something important - the cost if/when it happens.
Re:How to find size of an array in C without sizeof
by verdax_1 on Tuesday December 27, 2016 @02:43AM
(#13261846)
This is really emphasized in things like dmfea and other failure mode analysis documents or regulated industry. They want you to document the likelihood, your ability to recover from the failure, as well as the cost o the failure. You can say that you didn't want to pay for someone fixing some unlikely fail mode but that's small consultation to the people whose lives your product is ruining.
Correctness is great in theory, but in practice it's a matter of what's important.