Skip to content

Instantly share code, notes, and snippets.

@SaravananRajaraman
Created November 29, 2017 10:36
Show Gist options
  • Select an option

  • Save SaravananRajaraman/95d145e366a37a9998977713fee32109 to your computer and use it in GitHub Desktop.

Select an option

Save SaravananRajaraman/95d145e366a37a9998977713fee32109 to your computer and use it in GitHub Desktop.
variable naming conventions

There are three different way the variable naming convention we follow.

  • Camel case

Camel case: numberOfPeople

A series of words, with each intermeidiate word started with a capital letter. Called "Camel Case" because the capital letters make it look like the humps of a camel.

  • Kebab case

Kebab case: number-of-people

Hypehated words - like chunks of meat or vegatables on a kebab skewer. Note that cannot case only works in a gew languahes such as Tcl and Perl 6, as the minus sign most usually is the subtraction operator.

  • Snake case

Snake case: number_of_people

Words separated with underscores - the word snakes along past the underscores. Unlike Kebab case which is of limited (language) use, you can use Snake Case with most modern languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment