It is part of best practice to follow a standard across organization/company to keep things on same page.
Following a standard is always good in terms or readability and look too.
My personal choice is camelCase or PascalCase but there are many from where you can choose and follow. Refer to the table below.
Formatting | Names |
---|---|
twowords | flat case |
TWOWORDS | upper flat case |
twoWords | (lower) camelCase, dromedaryCase |
twoWords | camelCase |
TwoWords | PascalCase,Upper Camel Case,StudlyCase |
two_words | snake_case, pothole_case |
TWO_WORDS | SCREAMING_SNAKE_CASE, MACRO_CASE, CONSTANT_CASE |
two_Words | camel_Snake_Case |
Two_Words | Pascal_Snake_Case |
two-words | kebab-case, dash-case, lisp-case |
two|words | doner|case |
TWO-WORDS | TRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASE |
Two-Words | Train-Case,HTTP-Header-Case |
Feel free to share your thought in comment section below which one you prefer and why?