DrDoc - 6:03 pm on Sep 18, 2013 (gmt 0)
I tend to ask myself:
- If I went to buy a car, would I rather drive one where they tried to fix every little detail, or one where they only cared about fixing things that would cause an accident?
- If I am to see a doctor, would I rather see one who is concerned with my general health, or one who only cares about keeping me from immediate death?
While these two examples are certainly extreme, is there really a reason not to code right or not to fix every little warning? Are there benefits to lazy or sloppy coding?
Honest consideration will reveal that you are much better off addressing all the issues. Clean code is easier to work on and maintain, as has already been said. But sloppy code is also prone to errors or other more subtle mistakes. It might work now, but a future code modification may cause nasty creeping problems.