EN
Programming - PascalCase definition with example
9 points
In this article, we would like to explain the concept of the PascalCase
naming style.
Example:
PascalCaseNameExample |
The main idea is to:
- always start the name with a capital letter,
- mark words join using capital letters.
- the abbreviation:
- when starts the name:
- must be started with a capital letter,
- can be written with all capital letters,
- when is located inside the name:
- must be started with a capital letter,
- can be written with all capital letters,
- can be capitalized to make the name more readable.
- when starts the name:
Hint: using abbreviations select rules to make, as possible, names readable.
Other examples:
xxxxxxxxxx
1
Input (regular text) Output (in PascalCase)
2
-------------------- --------------------
3
4
This is example text ThisIsExampleText
5
6
HTML content HtmlContent or HTMLContent
7
8
main HTML content MainHTMLContent or MainHtmlContent
9
10
e-book EBook
11
12
new HTTP APR library NewHttpAprLibrary <---- to increase readability