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:
Input (regular text) Output (in PascalCase)
-------------------- --------------------
This is example text ThisIsExampleText
HTML content HtmlContent or HTMLContent
main HTML content MainHTMLContent or MainHtmlContent
e-book EBook
new HTTP APR library NewHttpAprLibrary <---- to increase readability