Camel case and Pascal case mistake

后端 未结 7 2029
我在风中等你
我在风中等你 2020-12-29 18:26

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 t

7条回答
  •  时光取名叫无心
    2020-12-29 19:14

    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.

提交回复
热议问题