1. Introduction to subroutines
Computer programs can get quite complicated, once you've laid out every task they need to carry out. This is why it is very important that the code is written in a well structured manner.
Subprograms are a key tool for producing neat, efficient, structured code. They are also known as subroutines, 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 ensuring that you follow good coding practices.