Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

qualities of a good program

Many of the decisions you make when creating your programs will depend on your individual taste, and you will develop your own programming style. There is usually more than one correct way to solve a problem. However, a set of three rules is often used to judge the quality of a program. A program should do the following:

  1. Perform the desired function

  2. Be easy to modify

  3. Be understandable by someone who knows the programming language used

The first rule seems pretty obvious, but it is not quite as simple as it may seem. Before you can be sure a program works, you first need to be able to say precisely what it should do. The complete description of what a program should do is called the program’s requirements. If you are creating ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata