Mail Archives: djgpp/1997/08/11/12:24:45
On Sat, 9 Aug 1997, Josh Eckstein wrote:
>
> Where are the other laws of programming?
Kagel's Law of Debugging:
The bugs are in the data. The fix goes in the code but the bugs are
found by examining inputs and outputs.
Explanation:
You can look at the code all day and never find the bug. Look at the
inputs and the, correct and incorrect, outputs. Ask three questions:
1) When is the output correct ?
2) When is the output incorrect?
3) What is different?
From the data and the answers you will infer the nature and location
of the bugs. Then you can go fix the code that produced the buggy
data!
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -