Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If you find that your code has a long list of the same line (but different parameters), consider creating an array (with those same parameters) and loop through those parameters.

  • If your code is more complex (and still repeats), consider refactoring your code into a user-defined routinefunction, the call that routine function as necessary. If you give the routine function a descriptive name of what it does, this gives the user the ability to understand what your code does.

...

Use names in a consistent manner. For example, when creating routines functions that run something (for example runTodo()), do not use “run” sometimes, then “execute” other times.

...