programming

Guide To Naming Conventions

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

Example:

 

 

 

 

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

Example:

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.

Example:

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.

Example:

Cool Dev

Recent Posts

Dental Implants Cost in Ohio: Local Quote Guide

Compare dental implant costs in Ohio with a clear quote checklist. Check final teeth, extra…

3 weeks ago

Dental Implants Cost in Illinois: Local Quote Guide

Compare dental implant costs in Illinois with a clear quote checklist. Check final teeth, extra…

3 weeks ago

Dental Implants Cost in Pennsylvania: Local Quote Guide

Compare dental implant costs in Pennsylvania with a clear quote checklist. Check final teeth, extra…

3 weeks ago

Dental Implants Cost in North Carolina: Local Quote Guide

Compare dental implant costs in North Carolina with a clear quote checklist. Check final teeth,…

3 weeks ago

Dental Implants Cost in Georgia: Local Quote Guide

Compare dental implant costs in Georgia with a clear quote checklist. Check final teeth, extra…

3 weeks ago

Dental Implants Cost in Arizona: Local Quote Guide

Compare dental implant costs in Arizona with a clear quote checklist. Check final teeth, extra…

3 weeks ago

This website uses cookies.