成人快手

Writing error-free codeErrors and documenting code

When writing programs, code should be as legible and error free as possible. Debugging helps keep code free of errors and documenting helps keep code clear enough to read.

Part of Computer ScienceProgramming

Errors and documenting code

When programs are written, it is likely that at least some errors will creep in. Errors in programs are often referred to as .

It is vital that programs are as free of errors as possible. Errors can cause a program to produce unexpected results, or .

There are two types of error that need to be considered:

Each type of error is different, and each is solved in different ways.

It is also good practice to code. Documentation helps keep code easy to read and easy to understand.