Capitalisation Styles
From SwinBrain
The following sections describe alternative ways of capitalising identifiers in source code. The following table summarises the different capitalisation.
| Name | Example 1 | Example 2 |
|---|---|---|
| Pascal Case | Color | MyImage |
| Camel Case | color | myImage |
| All Uppercase | COLOR | MY_IMAGE |
Pascal Case
With Pascal casing the first letter of each work is capitalised.
Examples:
- Color
- MyImage
Camel Case
Camel casing capitalises the first letter of each word, except for the first word.
Examples:
- color
- myImage
All Uppercase
All letters are capitalised, with underscores (_) used to separate words.
Examples:
- COLOR
- MY_IMAGE