| << 9.2.3- ASP Errors | Chapter9 | 9.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 Errors | Chapter9 | 9.3.1- Indent Your Code >> |

RSS
