Chapter 2. Program Structure
I don't really like using technical terms like "program structure," but it is a very useful concept that will benefit you as you begin to program your robots. The word structure implies some sort of organization or plan, doesn't it? By the time you finish this chapter, you should understand the importance of program structure to you and your robots.
What Do I Mean by Structure?
In Chapter 1, I gave you some examples of real-world programs. Would the following example have made any sense?
Teacher: Class, open your books to page 55.
[The class looks confused.]
Teacher: Class, I want you to get out your math books.
[Giving the teacher confused looks, the students get out their books.]
How can you read page 55 if you haven't ...
Get Lego Mindstorms NXT-G Programming Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.