One of the best tips I learned long ago was to turn on all warnings and error messages from the compiler or development system.
Yet last week, once again a big system was being worked on and the bug was tracked down to uninitialized variable.
Now this isn't specific to last weeks bug hunt but it amazes me how much [s]time[/s] money is lost over what our tools can report to us for free. I've seen projects invest heavily in code analysis tools yet miss on the basics. Here's a few project manager replies why they don't look for compiler warnings.
"The code runs fine. We test it thoroughly."
"It would cost too much to fix those."
"It's only a warning. Won't hurt."
How about you? Got any good replies like that?