Subroutines and functions
1. Sub-procedures and functions
Most computer programs are fairly complicated in the work they need to do. And so it is very important that the code is written in a well structured manner.
One of the key tools for producing neat, efficient, structured code is to make use of sub-procedures and functions.
This section will explain what these are and how to use them.
Spaghetti code
Code that is very poorly structured and jumps all over the place in a tangled manner is called 'spaghetti code' and is usually a nightmare to update and maintain. So avoid spaghetti code by following good coding practice as will be described in this section.