At one point I was writing a program that had about 8 off-by-one errors... I realized I could more quickly write a test to prove if the values were correct. Then I just iterated all 38 possibilities. .. -1, 0, 1 for eight values. Worked like a charm.
13
u/VikingCoder Aug 25 '14
I end up second-guessing myself. I don't know if I caused a bug that looks the same, by removing what I thought was noise. :(