Tuesday, April 14, 2009

Debugging: attitude

Debugging can be onorous - the programmer testing their own code naturally has a bias to make things work. Training oneself to be dispassionate with bug fixing seems against the tide but it is not.

What you have to do is find and isolate bugs. Highlight them. Make them stand out.

Difficulties:

There is a definite sense of defeat when encountering a bug. This for me was due to years of negotiating as a contractor and a moral obligation to have no bugs (as if they were a secret ingredient you had simply forgotten to add).

In fact, writing software without bugs requires very exact procedures. Writing software is also very creatively demanding.

The lack of decent specification before writing is the cause of bugs. Encouraging inventive creativity in the coding process creates a conflict of interests for the programmmer.

No comments: