Promote useful and efficient code in order to encourage students to make better design choices and develop good style.

Like(688 Likes)
  • It’s important to model the practices you want your students to follow because students will code in ways you’ve shown them.
    • Code that is simple, employs quality design choices, and is efficient sets a good example for students as opposed to code that is interesting, employs poor design choices, and is inefficient.
  • Some opportunities to demonstrate better design choices include:
    • Using insertion sort rather than bubble sort since insertion sort is more efficient.
    • Computing Fibonacci numbers using methods rather than recursion because recursion is incredibly inefficient for computing Fibonacci numbers.
      • Because of this inefficiency, recursion would be a poor design choice for this program.
External Source

Interview with Henry Walker.

Other Tips By