Code Complete

Brute Force Debugging

Perform a full design and/or code review on the broken code  Throw away the section of code and redesign/recode it from scratch  Throw away the whole program and redesign/recode it from scratch  Compile code with full debugging information  Compile code at pickiest warning level and fix all the picky compiler warnings  Strap on a unit test harness and test the new code in isolation  Create an automated test suite and run it all night  Step through a big loop in the debugger manually until you get to the error condition  Instrument the code with print, display, or other logging statements  Replicate the end-user’s full machine configuration  Integrate new code in small pieces, fully testing each piece as its integrated from book...

Quotations about Computer Programming

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more, and more expensive clerks even though they call them "operators" or "programmers."  ~Peter F. Drucker Programmer - an organism that turns coffee into software.  ~Author Unknown Programming is like sex.  One mistake and you have to support it for the rest of your life.  ~Michael Sinz All programmers are playwrights and all computers are lousy actors.  ~Author Unknown Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.  ~Martin Golding Everyone knows that debugging is twice as hard as writing a...