Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Coding For Errors

Hey all,

Just wondering when you usually do this. As I think about it I realize that I tend to do it after I've built the functionality and tested that it works, but I'm wondering if this process should be integrated into how I do development.

David Seruyange
Tuesday, May 31, 2005

Error handling usually requires structural and/or logic changes anyway - so I just do it upfront.

Most of the time.

Jeff Mastry
Tuesday, May 31, 2005

Right at the beginning. As a very minimum, I'd add a top-level exception handler right away to make sure any error will be logged (or assertion raised). For more extensive advice, see "Code Complete" by Steven McConnell, the chapter on defensive programming.

Dmitri Chatokhine
Tuesday, May 31, 2005

*  Recent Topics

*  Fog Creek Home