I've always had the attitude that its easy to not put bugs in in the first place than to have to find and fix them later. Whatever you do that makes the code simpler and clearer up front, which might take longer, is always saved in the end when there are fewer things to fix. I started thinking this way 30 years ago and it's always done me well since.