[Lavanya Deepak] Lavanya Deepak
Technology for Better Business and Higher Standards of Life

Friday, September 26, 2008

"Treat warnings as errors"

"Treat warnings as errors"

I just thought of sharing this as a good programming practice for beginners to cultivate. Compiler warnings are actually a flag for you to indicate a potential problem. It might be a simple deprecation warning or an = assignment when == is being intended.

As long as your compiler supports an option of having the warnings treated as errors, I would strongly recommend anyone to turn on this feature. That way, we can have our programs robust and resilent without any latent errors hidden anywhere.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home