Coding Best Practices

  • Plan your program BEFORE you start writing it

  • Comment your code and make sure your comments are easily understandable

  • Name variables and/or functions in a way that relates to their function

  • Code clearly but succinctly so that your program can be easily used and/or adapted by somebody else

  • Avoid global variables
  • Respect the Spec

  • Use checkpoints as you write your program

  • If you’re stuck, take a break and come back to it. If that doesn’t help, talk to your peers