Naming styles are one of the trivial things in a style guide. Here are some of then names you might hear.
The Styles
snake_case
camelCase
: Also lowerCamelCasePascalCase
: Also UpperCamelCaseCONSTANT_CASE
: This is used in many languages for constantscebab-case
: I have only seen this within strings. This is likely as the-
is usually used for substraction. It's also used for file names. It's mentioned here and on robinwieruch.de.
Application
Variables | Functions / Methods | Classes | |
---|---|---|---|
Python | snake_case | snake_case | PascalCase |
JavaScript | camelCase | camelCase | PascalCase |
C++ | snake_case | PascalCase | PascalCase |
Java | camelCase | camelCase | PascalCase |
See also
Wikipedia:
Style Guide: