Skip to content

Guide To Naming Conventions

  • by

Specifically, there are certain naming conventions available across all programming languages, also known as

  • Snake Case
  • Camel Case
  • Pascal Case
  • Kebab Case

Snake Case:

Snake Case also known as “underscore case” separates each word with underscore. All words in snake case need to be lower case. There is also an all-caps version of the snake case where all letters are in the upper case, also known as the screaming snake case. The capitalized version is used for declaring constants in most programming languages. This naming convention is commonly used in programming languages like:

  1. Python
  2. Ruby
  3. PHP






Camel Case:

Camel case, on the other hand, uses no separators between words but making the first word lowercase. Then, you capitalize the first letter of each word. This naming convention is commonly used in languages like:

  1. GO
  2. JavaScript
  3. TypeScript
  4. C#
  5. Java


Pascal Case:

Pascal case is similar to camel case. The only difference between the two is that pascal case requires the first letter of the first word to also be capitalized. You will see the pascal case used for naming classes in most programming languages.


Kebab Case:

The kebab case is very similar to snake case. Kebab case is also known as “hyphen-separated lowercase” or “spinal case.” The difference between snake case and kebab case is that kebab case separates each word with a dash character, instead of an underscore. You will encounter kebab cases mostly in URLs.


Leave a Reply

Your email address will not be published. Required fields are marked *

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.