What are PascalCase and CamelCase In Programing Language?


What are PascalCase and CamelCase In Programing Language?.





Pascal Case :- In programming, PascalCase means that the first letter of every word in the name is capitalized. In Pascal Case if acronym exists in the word then only the first letter of that acronym should be capital. Eg: ThisWordIsInPascalCase . No other characters are used to separate the words, like hyphens or underscores.

For example:
  • BackColor
  • TimeUtc
  • FirstName


CamelCase :-   camelCase or CamelCase; also known as camel caps or more formally as medial capitals. It is the same as Pascal Case, but the first letter of the first word is lowercased.

this article calls the two alternatives upper camel case (initial upper case letter also known as Title Case) and lower camel case (initial lower case letter). Some people and organizations, notably Microsoft , use the term camel case only for lower camel case.

For example:
  • backColor
  • timeUtc
  • firstName

Snake_case :-PascalCase and camelCase may be compared to Snake_case in which the words are always combined with an underscore character (_).
For example:
  • back_color
  • time_utc
  • first_name

We should never Use Snake_case in coding practices. Read More Related to Coding Practices

No comments

Powered by Blogger.