Motivation
Soon after starting to write the program for your robot you will encounter some typical problems:
- clarity: the bigger the program gets the harder it is to keep the general overview
- decoupling: you only want to change a certain part of the program without influencing all the rest
- recyclability: there are several similar parts in your robot for which you would like to reuse particular sections of your code
These problems reach back to the beginning of programming and their solution is an art and a science at the same time.
It generally helps a lot to separate your program into single subunits that are relatively independent from each other.