Here are some naming styles that are relevant to CS 20:
Type | Naming Convention | Examples |
---|---|---|
Function | Use a lowercase word. Separate words using underscores to improve readability. | function, my_function |
Variable | Use a lowercase word. Separate words using underscores to improve readability. | x, var, my_variable |
Constant | Use an uppercase single letter, word, or words. Separate words with underscores to improve readability. | PI, CONSTANT, MY_CONSTANT |