ONJava.com: Towards Bug-Free Code: "Towards Bug-Free Code
by Ashwin Jayaprakash
'Bug-free code.' Well, that's a bold statement to make about one's code. In August 2004, Mozilla announced that it would offer $500 for every serious bug found by security researchers. I wouldn't dare to make such a claim about my code on a regular basis, or I'd be broke in a month. However, if we make good use of some of the basic idioms and rules of thumb of design and programming, we can take a step closer towards software with fewer bugs. Any programmer worth his or her salt will agree that lately, design patterns have been overused to the point that the programmers start off directly with advanced patterns, while being completely ignorant of basic rules."