Languages
[Edit]
EN

Programming - PascalCase definition with example

9 points
Created by:
Paluskitten
296

In this article, we would like to explain the concept of the PascalCase naming style.

Example:

PascalCaseNameExample

The main idea is to:

  1. always start the name with a capital letter,
  2. mark worlds join using capital letters.
  3. 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.

Hint: using abbreviations select rules to make, as possible, names readable.

Other examples:

Input (regular text)     Output (in cameCase)
--------------------     --------------------

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

See also

  1. Programming - Case Styles

References

  1. PascalCase - Wikipedia

Programming - Case Styles

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

â€ïžđŸ’» 🙂

Join