Names for Name Conventions
Names I’ve seen used to refer to naming conventions:
snake_case
,hacker_case
,unix_hacker_style
: Everything is lower case, though exceptions exist. E.g.HTTP_foo_bar
.SCREAMING_SNAKE_CASE
: Usually reserved for macros and constants.camelCase
: The first letter is lowercase.PascalCase
: The first letter is uppercase.kabob-case
: Likesnake_case
, but uses dashes instead of underscores. Common for command-line options1, CSS styles, commands (e.g.git-receive-pack
).
While looking idly looking for details on this, I stumbled on this Medium post which is relevant.
-
Opinions vary on whether the correct convention for command line options is
snake_case
orkabob-case
. Long form options are often written as--long-option
, but can also be--long_option
(where the delimiter within the option is_
).↩︎
Last modified: August 24, 2020