2 ms·
Section 5.4, “Top avoidance mechanisms” (paraphrased): 1. Validate input 2. Check error values 3. Enable compiler static analysis 4. Run a static analysis t
by Someone 9y ago
Section 5.4, “Top avoidance mechanisms” (paraphrased):
1. Validate input
2. Check error values
3. Enable compiler static analysis
4. Run a static analysis tool
So, tooling is high on the list. For #1 and #2 tooling may help, but I do not see how it can avoid them.
Lower down that list there are items where tooling will be of limited, if any use, such as “make error handling an integral part of system design”, “use clear and consistent names” and “do not use floating point where integers would suffice”.