naming-conventions

Camel case and Pascal case mistake


I constantly forget which is Camel case and which is Pascal case. So I thought that maybe a little history will help. Where do the names of these conventions come from? Is there some history behind their names?


Solution

  • To remember camel case you have to think about the shape of the capital letters. They are like the humps of a camel as you can see in this image.

    Pascal Casing - capitalizes each word:

    ThisShouldBePascalCase

    Camel Casing - is similiar to pascal case but the first word is not capitalized:

    thisShouldBeCamelCase

    You can read some history here

    UPDATE: Change the camel case image after reading the comments.