Languages
[Edit]
EN

Programming - PascalCase definition with example

9 points
Created by:
Paluskitten
356

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 words 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 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

See also

  1. Programming - Case Styles

References

  1. PascalCase - Wikipedia

Alternative titles

  1. Programming - pascal case definition with example
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

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