??? 08/15/05 19:40 Read: times |
#99475 - competent Responding to: ???'s previous message |
I see a difference between competent and defensive programming. By competent I mean working. Sounds trivial (after all that's the basic requirement for any program, isn't it)... But I mean by this, not lousy, not working by chance, not stitched-together, "hold the wall Pete, while I'm going to get the money". That was mostly like what I needed to correct/rework (plus a couple of hard-to-catch bugs, but that happens to anybody, defensive or not, isn't it). Defensive is IMHO one more HUGE step beyond this - as per your description in the original post. I also once needed to make upgrades to a piece which I think is exact example what you call defensive programming (that was where I learned '51). At the end of the day I found that no easier than upgrading any other "less defensive" program - it simply was not prepared for that particular upgrade in any way so I had to rethink and rewrite quite substantial pieces of it... Jan Waclawek |