Thoughts from Dan Miser RSS 2.0
 Friday, May 28, 2004
OK, time to start my list of pet peeves. :-) When you write code that results in a hint or warning, don't treat it as a congratulations message that everything is going well. Instead, take the time out NOW to stop and fix the hint or warning. If you start getting sloppy and letting hints and warnings go, then you will inevitably get burned later on as a result of this. One perfect example of this was a project that had hundreds of hints and warnings accumulate over the years. One day, a hard to reproduce access violation got reported. Since we didn't have a test case, we had to walk through the code by hand. Finally, I noticed that a variable could possibly not be assigned in one code path. I then actually said out loud "That's funny. I would have thought a warning would have been generated." In response, the developer said "Could be. I don't know. I turned off hints and warnings because there were so many of them." We turned them back on, and sure enough, there was the warning that I expected. We fixed the code, the warning went away, and so did the AV. Shortly afterwards, we took the time to clean up all of the hints and warnings. Heaven knows how many more potential bugs we avoided by cleaning those up. Hopefully, you can learn from this mistake by just reading this. It's a lot less painful than the alternative.
Friday, May 28, 2004 2:16:00 PM (Central Standard Time, UTC-06:00)  #    Comments [3] -

Tracked by:
http://9om-information.info/14184619/index.html [Pingback]
http://9oa-information.info/43175538/index.html [Pingback]
http://9or-information.info/32453902/cristina-school-district.html [Pingback]
http://9od-information.info/81182728/how-to-make-overhead-projector.html [Pingback]
http://9ox-information.info/79324351/index.html [Pingback]
http://9qt-information.info/48968871/impianto-sportivo-progettazione-sicurezza-a... [Pingback]
http://9rv-information.info/95433012/janika-music-cd-janice-friedman.html [Pingback]
http://9ro-information.info/71272637/index.html [Pingback]
http://9rp-information.info/19775627/index.html [Pingback]
http://9rk-information.info/00447073/index.html [Pingback]
http://9sh-information.info/44585629/capodanno-week-end-montagna.html [Pingback]
http://9sc-information.info/53787141/index.html [Pingback]
http://9sk-information.info/09773039/solanum-pseudo-capsicum.html [Pingback]
http://9sm-information.info/90059966/maxtor-onetouch-300gb.html [Pingback]
http://9uaeo-le-informazioni.info/13010157/index.html [Pingback]
http://9uaef-le-informazioni.info/37313239/index.html [Pingback]
http://9uaeq-le-informazioni.info/44925627/ram-ddr-333mhz-pc-2700.html [Pingback]
http://9uaft-le-informazioni.info/61586699/index.html [Pingback]
http://9uael-le-informazioni.info/81085531/index.html [Pingback]
http://9uaeb-le-informazioni.info/05102025/prenotazione-pensioni-roma-online.htm... [Pingback]
http://9uafn-le-informazioni.info/36279817/index.html [Pingback]
http://9uafq-le-informazioni.info/30346214/offerta-vodafone-no-problem.html [Pingback]
http://9uafd-le-informazioni.info/16179464/index.html [Pingback]
http://9uafa-le-informazioni.info/07716408/index.html [Pingback]
http://9uaha-le-informazioni.info/71816763/index.html [Pingback]
http://9uagt-le-informazioni.info/42870890/centro-wet.html [Pingback]
http://9uagr-le-informazioni.info/56626620/index.html [Pingback]
http://9uagp-le-informazioni.info/01202713/squadre-calcio-italiane.html [Pingback]
http://9uahf-le-informazioni.info/36497258/half-life-2-espansione.html [Pingback]
http://9uagn-le-informazioni.info/13134165/index.html [Pingback]
http://9uahf-le-informazioni.info/88763023/index.html [Pingback]
Friday, May 28, 2004 9:49:00 PM (Central Standard Time, UTC-06:00)
One thing that's irritating with 3rd party software you buy (with source) compiles with warnings and/or hints (truncated variables - string size mismatch etc.)
Saturday, May 29, 2004 1:33:00 AM (Central Standard Time, UTC-06:00)
I agree totally and have zero tolerance for hints and warnings, even to the extent of adding code to keep the compiler happy.



Over the years this has saved me an enormous amount of debugging time.
Mike Orriss
Sunday, May 30, 2004 4:22:00 PM (Central Standard Time, UTC-06:00)
I agree. Most of them are so easy to fix and only caused by bad coding style. There is nothing better than building a large project of a few million lines and to get 0 errors, 0 warnings, 0 hints.
Craig
Comments are closed.
Navigation
Archive
<August 2008>
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Dan Miser
Sign In
Statistics
Total Posts: 306
This Year: 21
This Month: 0
This Week: 0
Comments: 604
All Content © 2008, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)