More than the act of testing, the act of designing tests is one of the best bug preventers known.
Boris BeizerSecond law: The complexity barrier. Software complexity (and therefore that of bugs) grows to the limits of our ability to manage that complexity.
Boris BeizerFirst law: The pesticide paradox. Every method you use to prevent or find bugs leaves a residue of subtler bugs against which those methods are ineffective.
Boris Beizer