Skip to content

Style Guide

Ken edited this page Feb 1, 2024 · 4 revisions
  • Use meaningful names, as close to the spoken description as possible.
    • For example: when posing the question "How should we track the cat's location?", consider naming the variable theCatsLocation.
    • Similarly, if adding a function to help with some task, its name should resemble theThingItDoes().
  • Use let instead of var.
  • Use color strings instead of RGB whenever possible.
    • For example: fill('green') instead of fill(0, 255, 0).

Clone this wiki locally