-
Notifications
You must be signed in to change notification settings - Fork 1
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().
- For example: when posing the question "How should we track the cat's location?", consider naming the variable
- Use
letinstead ofvar. - Use color strings instead of RGB whenever possible.
- For example:
fill('green')instead offill(0, 255, 0).
- For example: