Page

9.3.0- Good Coding Practice

Created by Brendan Doss.
Last Updated by Brendan Doss.  

PublicCategorized as 09. Error Handling.

Not yet tagged
<< 9.2.3- ASP ErrorsChapter99.3.1- Indent Your Code >>

Good Coding Practice

So, you've spotted your error. Now what are you going to do about it? The first advice we're going to offer isalmost blindingly obvious. Don't write code with errors in it in the firstplace! This may seem easier said than done, but if you stick to some well-wornpractices, that programmers from Roman times onwards have used, then you canvastly reduce the chances of introducing errors into your page.

 

These techniques are, without exception, simple tounderstand, easy to execute and yet a lot of programmers don't use them!"Why not?" you might be wondering. Well, because your averageprogrammer is a busy person, who doesn't like anything that distracts from theactual task of programming. The main objections are usually that a) these techniquesare time-consuming, b) they require some degree of forward planning andorganization and c) that they don't guarantee that your code will be errorfree. Programmers might not couch their objections in these terms, but that'swhat it boils down to. And remember, nothing can guarantee that your code willbe error free and, as doctors maintain, prevention is better than cure…

<< 9.2.3- ASP ErrorsChapter99.3.1- Indent Your Code >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |