What are camelCase, snake_case and kebab-case?
I just installed Godot and it presented me with five alternatives for Directory Naming Convention (guess which convention that name follow):
- kebab-case
- snake_case
- camelCase
- PascalCase
- Title Case
Historically, I guess programmers needed ways to name functions, constants, classes and variables in their code which cannot contain spaces. Over time, The_Programmers chose different paths forward and the list of conventions grew larger (kind of like the old snake game). People do have different tastes and their creativity took hold, leading to lots of different FORMATTING_METHODS.
Wikipedia calles this Multiple-words identifier formats and includes:
FormattingName(s)twowordsflatcaseTWOWORDSUPPERCASE, SCREAMINGCASEtwoWords(lower) camelCase, dromedaryCaseTwoWordsPascalCase, UpperCamelCasetwo_wordssnake_case, snail_case, pothole_caseTWO_WORDSALL_CAPS, SCREAMING_SNAKE_CASE, MACRO_CASE, CONSTANT_CASEtwo_Wordscamel_Snake_CaseTwo_WordsPascal_Snake_Case, Title_Casetwo-wordskebab-case, dash-case, lisp-case, spinal-caseTWO-WORDSTRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASETwo-WordsTrain-Case, HTTP-Header-Case
There you go, you may now choose your favorite caseFormat.