Different case styles in programming

Camel case 

"theQuickBrownFoxJumpsOverTheLazyDog" or "TheQuickBrownFoxJumpsOverTheLazyDog"
First letter of each word is capitalised. In languages such as C# it is almost imperative to use low case for the first word

Snake case 

"the_quick_brown_fox_jumps_over_the_lazy_dog"
Spaces are replaced by underscore. Words can be lower case, upper case or mixed.

Kebab case

"the-quick-brown-fox-jumps-over-the-lazy-dog"
Same as Snake case, however underscores are replaced with hyphens.

Studly caps

"tHeqUicKBrOWnFoXJUmpsoVeRThElAzydOG"
Complete chaos and pattern whatsoever - use it if you want to offend other programmers. 

Comments

Post a Comment