Readability

A readable program is easier to maintain. Whether maintenance is carried out by you or another programmer, making the code easy to read will speed up the process.

You can make your code more readable by:
  • Adding internal commentary to explain the purpose of sections of code. In Visual Basic this is done using an apostophe.
  • Using indentation to highlight the start and end of control structures.
  • Using white space to separate sections of code.
  • Using meaningful identifiers for variables, arrays, procedures and controls.

Back to index

mph@ghscomputing.co.uk

Updated 09 December 2018