Friday, January 29, 2010

Here are some suggestions from Elements of Programming Style

Here are some suggestions from Elements of Programming Style:

* Make sure all variables are initialized before use.
* Don't stop at one bug (there are always more).
* Initialize constants in the DATA DIVISION; initialize variables
* with executable code.
* Watch for off-by-one errors.
* Test programs at their boundary values.
* Program defensively.

No comments: