释义 |
- 蛇形命名法:指每个空格皆以底线(_)取代的书写风格,且每个单字的第一个字母皆为小写。蛇形命名法经常被使用在计算机科学当中,例如编程语言的变数名称、副程式的名字以及档案名称。一份研究指出相较于驼峰式大小写,使用蛇形命名法能够让读者更快速的辨识出值的含意。
- abstract:
1 Snake case (or snake_case), is the practice of writing compound words or phrases in which the elements are separated with one underscore character (_) and no spaces, with each element's initial letter usually lowercased within the compound and the first letter either upper or lower case—as in "foo_bar", "Hello_world". It is commonly used in computer code for variable names, and function names, and sometimes computer filenames.
- 1
But I've been told that due to how Active Record works, it will be much easier if we use snake case. 但我被告知,由于有活动记录工作,如果我们用蛇的情况下就简单多了。 - 2
Is there any reason, other than "this is how it's typically done", that we need our database to use snake case instead of upper camel case? 是有原因的,除了“是这样的,通常是“我们需要我们的数据库使用情况而不是蛇上骆驼的情况? - 3
I was intrigued however to spot the amulet of peacock feathers his family had placed around his ankle, another traditional cure for snake bite, just in case. 然而我很好奇的是他家人在他的脚踝周围画上孔雀羽毛状的图案作为护身符,这是另外一个传统方法,用来以防万一的。
|