Programming Case Types !Explained

Search for a command to run...

No comments yet. Be the first to comment.
I strongly believe, 20’s are all about experiments I mean 20 - 30 Age is to try out all the things you like and try to succeed, After that you can think about settling down on one career or one company. TL;DR → I am leaving my Full Stack Developer J...

First things first, Start your IT career with growing company or startup. I started as Full Stack Developer at Keka HR. Its been one whole year and it feels like i joined yesterday. However, knowledge gap and solution providing strategies improvised ...

I know it’s been rough year for all of us, but as Developer who followed the bandwagon so called Data Science in college, ended up falling in love with Web Development after getting job in it, which i never thought, i would do. I wanna share my 2021 ...

Balancing, most people refer it as theory where if we manage to satisfy the couple of things / persons / activities we want to do. But its easier said than done, Cause i am facing this issue in recent times and i came over it with some small tweaks i...

No matter how well you are at Coding. Name Conventions can be a pain in the A**.
In the programming world, languages use some specific pattern in naming variables, functions
And Jeff Atwood (Stack Overflow Co-founder ) says
“Naming Conventions is one of the two hard things in Computer Science”
we all use naming to things we define in the program from variables to functions. In Programming, if you want to name a thing with more than one word you can’t name it with added space or without space directly some times it might mislead the code reviewers/ code readers like therapists can sound like therapists or the rapists.
Here comes the Case Type with a solution where it has different ways to name a thing that has more than one word.
Today, we will look into the Different Case Types in the Programming World
Camel Case is actually inspired by the animal “Camel”. Where the first word will be small letters and from the second word, the first character will be capitalized like camelCase.
Some of the big companies are also inspired by this. Example like iPhone, eBay
Generally, Camel Case is used for Variable Naming
Snake Case is naming with words separated by _ ( underscore ) and all small letters
Generally, Snake Case is used for Variable Naming
Ex :- snake_case, new_word
Kebab Case is naming with words separated by - ( hyphen ) with all small letters
Generally, Kebab Case is used for CSS naming
Ex :- new-word, kebab-case
Pascal Case is naming with the First letter of each word is Capitalized.
Generally, Pascal Case is used for Class Naming
Ex:- NewWord, PascalCase
Macro case is naming with all letters Capitalized but the words are joined with _ ( underscore)
Generally, Macro case is used for Preprocessor and constants
Ex:- NEW_WORD, MACRO_CASE
Train Case is naming with the first character of every word of the name is Capitalised and words are connected with - ( hyphen ).
Ex:- New-Word, Train-Case