Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions content/cases/camel.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,40 @@ weight = 34

_Camel case_ is the camel pattern with empty string delimiter.

Camel case is also known as _mixed case_ or _lower camel case_ (to distinguish it from [pascal case](../pascal)).
## Synonyms

- _Camel caps_
- _Mixed case_[^1]
- _Lower camel case_, to distinguish it from [pascal case](../pascal).
- _Dromedary case_[^2], also to distinguish it from [pascal case](../pascal), since dromedary camels have only one hump[^3], comparable to the single upper case letter.
- _Camel back_[^4]
- _Compound Names_[^5]
- _Pothole case_[^6]
- _Embedded Capitals_[^7] or _Embedded Caps_[^8]
- _Bumpy case_ or _Bumpy caps_[^8]
- _Nerd caps_[^8]
- _Turtle case_[^8]
- _C case_[^2]
- _Smalltalk case_, in reference to the Smalltalk programming language **todo: verify**

**todo: figure out which of these are specific to lower camel case**

[^1]: [Style Guide for Python Code: Naming Styles](https://peps.python.org/pep-0008/#descriptive-naming-styles)
[^2]: [Nishanth J., answering: What are the different kinds of cases?](https://stackoverflow.com/a/64293621)
[^3]: [National Geographic: Arabian Camel (Dromedary)](https://www.nationalgeographic.com/animals/mammals/facts/arabian-camel)
[^4]: [Purdue University: C# Coding Standards and Guidelines](https://web.archive.org/web/20080411055228/http://www2.tech.purdue.edu/cit/Courses/CPT355/C_Sharp_Coding_Standards_and_Guidelines.asp)
[^5]: [Ian Feldman: compoundNames](https://groups.google.com/group/alt.folklore.computers/browse_thread/thread/6099191f2c4e0984/21f332e5b813313e?#21f332e5b813313e)
[^6]: [Michael Guerzhoy: Variable Naming Conventions](https://www.cs.toronto.edu/~guerzhoy/180f16/lectures/W02/lec2/VariableNamingConvetions.html)
[^7]: [Dwight Harn: If class name has embedded capitals, AppGen code fails UI tests, and generated hyperlinks are incorrect.](https://web.archive.org/web/20170625073321/http://issues.appfuse.org/browse/APF-1088)
[^8]: [Michelle Rau: CamelCase: It's a thing](https://michellerau.com/2017/03/25/camelcase-its-a-thing/)

## Known Literature

Google's C++ style guide refers to camel case as mixed case, and further describes how you would define the words that compose an identifier, and then even mentions abbreviations. [^1]
Google's C++ style guide refers to camel case as mixed case, and further describes how you would define the words that compose an identifier, and then even mentions abbreviations. [^9]

> For the purposes of the naming rules below, a "word" is anything that you would write in English without internal spaces. This includes abbreviations, such as acronyms and initialisms. For names written in mixed case (also sometimes referred to as "camel case" or "Pascal case"), in which the first letter of each word is capitalized, prefer to capitalize abbreviations as single words, e.g., StartRpc() rather than StartRPC().

[^1]: [Google C++ Style Guide: General Naming Rules](https://google.github.io/styleguide/cppguide.html#General_Naming_Rules)
[^9]: [Google C++ Style Guide: General Naming Rules](https://google.github.io/styleguide/cppguide.html#General_Naming_Rules)

## Examples

Expand Down
4 changes: 3 additions & 1 deletion content/cases/cobol.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ weight = 21

_Cobol case_ is the upper pattern with hyphen `-` delimiter.

Cobol case is also known as _upper kebab case_.
## Synonyms

- _Upper kebab case_ or _Screaming kebab case_

**todo** not sure Cobol case is even a great name

Expand Down
5 changes: 4 additions & 1 deletion content/cases/constant.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ weight = 11

_Constant case_ is the upper pattern with underscore `_` delimiter.

Constant case is also known as _upper snake case_ or _screaming snake case_.
## Synonyms

- _Upper snake case_ or _Screaming snake case_
- _upper snail case_ or _Screaming snail case_

## History

Expand Down
4 changes: 4 additions & 0 deletions content/cases/flat.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ weight = 30

_Flat case_ is the lower pattern with empty string delimiter.

## Synonyms

- _Lazy case_

## History

Google style guide: [^1]:
Expand Down
12 changes: 11 additions & 1 deletion content/cases/kebab.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ weight = 20

_Kebab case_ is the lower pattern with the hyphen `-` delimiter.

Kebab case is also known as _dash case_ or _hyphen case_.
## Synonyms

- _Dash case_[^1] or _Hyphen case_[^2]
- _List case_[^1]
- _Spinal case_[^1]
- _Caterpillar case_[^2]
- _Param case_[^2]
- _Lisp case_[^1], in reference to the Lisp programming language

[^1]: [Nishanth J., answering: What are the different kinds of cases?](https://stackoverflow.com/a/64293621)
[^2]: [Andreas Herz, answering: What are the different kinds of cases?](https://stackoverflow.com/a/54330161)

## History

Expand Down
12 changes: 11 additions & 1 deletion content/cases/pascal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,14 @@ weight = 34

_Pascal case_ is the capital pattern with empty string delimiter.

Pascal case is also known as _upper camel case_.
## Synonyms

- _Upper camel case_
- _Proper case_[^2]
- _WikiWord_[^1] or _Wiki case_[^2], stemming from the TWiki software
- _Bumpy case_[^2]
- _Studly case_[^3] **todo: verify, Michelle Rau claims this is not the same**

[^1]: [Twiki: What is a WikiWord?](https://web.archive.org/web/20100619042605/http://twiki.org/cgi-bin/view/TWiki/WikiWord)
[^2]: [Michelle Rau: CamelCase: It's a thing](https://michellerau.com/2017/03/25/camelcase-its-a-thing/)
[^3]: [Nishanth J., answering: What are the different kinds of cases?](https://stackoverflow.com/a/64293621)
5 changes: 4 additions & 1 deletion content/cases/snake.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ weight = 10

_Snake case_ is the lower pattern with underscore `_` delimiter.

Snake case is also known as _lowercase_with_underscores_.
## Synonyms

- _Snail case_
- _Lowercase with underscores_[^1]

## Known Literature

Expand Down