骆驼案和帕斯卡案的错误 [英] Camel case and Pascal case mistake

查看:85
本文介绍了骆驼案和帕斯卡案的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常忘记哪个是骆驼案,哪个是帕斯卡案.所以我认为也许有一点历史会有所帮助.这些约定的名称从何而来?他们的名字背后有一些历史吗?

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?

推荐答案

要记住骆驼的大小写,您必须考虑大写字母的形状.它们就像骆驼的驼峰,正如您在图片.

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 -大写每个单词:

ThisShouldBePascalCase

骆驼套管-与pascal大小写相似,但首字母不大写:

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.

这篇关于骆驼案和帕斯卡案的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆