GMU:Functions and Classes (Arduino)

From Medien Wiki
Revision as of 10:43, 28 March 2017 by Veja6203 (talk | contribs) (Created page with "==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 k...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.