Casing is such an important idea in programming that languages usually include various case conversion functionality out of the box. Such as
In PascalCasing, all the words used to name a variable or a function starts with capital letters. For example:
In camelCasing, the first letter of the word is always small letter and the rest of the words are always capital letter. so for example:
In kebab-casing, every word will be followed by a hyphen with all small letters. I believe the name comes from how a stick in inserted through a shish kebab. Usually you wouldn't be able to use kebab-casing for variables and functions. For example:
In snake_casing the cases will have an underscore after each word which would look like a snake walking or a snake just snaking around. Examples would look like the following:
Top comments (5)
I love the illustrations 😍
Do you know what code written like this is called?
Screaming snake case? 😁
Probably Boa Case
UpperCase with underscores
Ahaha no idea 🤣 but most probably that 😁 works for me!
Kebab-case is useful for Lisp, XML and XSLT for naming elements.