What simple tips/suggestions do you follow in order to write bug free code (or at least minimum bugs)?
If you write code, bugs are inevitable! My question is how do you minimize it? What tricks do you follow so that you write code with least number of bugs?