next up previous contents
Next: Example: designing an automatic Up: Programming Help Previous: File Operations

Good programming

Adhering to good programming principles pays in clarity of programs, and facilitates debugging (finding errors).

Adhering to the principles below is not a guarantee that the programs will work. It is also possible to write programs that execute correctly without any of the below. Nevertheless, it is a good habit to follow these recommendation. The gain is in clarity of the program, readability of its portions. Consequently, you will be able to design more complex programs that execute as expected. You will also re-use components easier.

If you wrote a program that uses GOTO statement(s), it is a good exercise to re-write it without a single GOTO instruction!



Send comment