Turtle Coding: Efficiency in Programming

Define efficiency in programming: Term used to depict the reliability, speed and programming methodology used in developing codes for an application. Code efficiency is directly linked with algorithmic efficiency and the speed of runtime execution for software.
When we are trying to be "efficient" in our programming what are some (valuable) resources we might be concerned with?  Why does it matter?
-When we are trying to be “efficient” in our programming, we have to be concerned with the amount of commands we are using. Always being aware of where we are potentially using too many commands is a big part of programming.
What strategies or reasoning did you use to identify possible solutions?
-First, I followed the program instructions to make the turtle move the way it was supposed to. After that, I looked at the code and found ways to cut down on the amount of lines of code I had.
Is the solution that you or another group found the most efficient? How do you know?
-I believe so. There didn’t seem to be a way to trim down my code any further, Amir took a look at my code and found no way to make it any more efficient.
Thought Prompt: What is the “most efficient” way to program the solution for the 3x3 grid?

-The most efficient way would be to create a command that turns right. Instead of having to code a left turn 3 times, you could turn right, which would only take one turn.

Comments

Popular posts from this blog

Reflection on Blown to Bits Chapter 1

Ghost in the Machine reflection (Blown to Bits p. 73-88)

Homework Day 3: Computing Innovations