Different kind of casing to consider while naming variables, classes, files.

camelCase


Camel case (stylized as camelCase; also known as camel caps or more formally as medial capitals) is the practice of writing phrases such that each word or abbreviation in the middle of the phrase begins with a capital letter, with no intervening spaces or punctuation. Common examples include "iPhone" and "eBay". It is also sometimes used in online usernames such as "johnSmith", and to make multi-word domain names more legible, for example in advertisements.

PascalCase


This is also a very popular way to combine words to form a single concept. It is often used as a convention in declaring classes in many languages.

source: https://en.wiktionary.org/wiki/Pascal_case#English


Snake_Case


Snake case combines words by replacing each space with an underscore (_) and, in the all caps version, all letters are capitalized, as follows:
  1. snake_case
  2. Snake_Case
  3. SNAKE_CASE

Kebab-Case

In allusion to the appearance of a kebab, with various food items assembled on a skewer.

source: https://en.wiktionary.org/wiki/kebab_case#English

Comments

Popular posts from this blog

FastEndpoint vs Minimal APIs vs Controller

Kick start 2021 😃😃

Work with Raspberry PI Zero W