Page 54 - Movement Challenge
P. 54
Code efficiency means that a program is written to work well and quickly, using the least
amount of work, or steps, properly, while still doing its job. It is important because it reduces
the risk of a program not functioning well, and in turn, causing problems for other parts of a
program that are running around it. The efficiency of a code can be a measure of quality, and
when we write projects in VEXcode IQ block, we are often looking for the most “efficient”
project as the preferred solution.
Basically, code efficiency is a principle that means you want to write a code that
accomplishes your goal using the fewest commands, or blocks, possible.
In your Engineering Notebook, answer the following questions:
With code efficiency in mind, which is your preferred solution and why?
Do you think that is the best solution, why or why not?