in reply to What habits do you have to avoid introducing bugs?
Whenever I see duplicate occurrences of the same code, I try to use a sub instead. (If there's a problem with it, a fix to the one sub fixes all occurrences; you know the code is supposed to be identical.)
These prevent logical as opposed to physical problems...
Revised:Always test error returns! Always display error returns with associated parameter(s) (as opposed to simple text)!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What habits do you have to avoid introducing bugs?
by andreas1234567 (Vicar) on Feb 06, 2008 at 11:54 UTC |