Netcode-Hub

Good Programming Tip! Try it Out! 😅
✔ Naming Conventions
Naming conventions refer to the guidelines or rules that developers follow when naming variables, functions, classes, and other elements in their code. The purpose of these conventions is to make the code more readable, maintainable, and self-documenting.

There are several commonly used naming conventions in programming languages, I will mention the three most popular:

1- Pascal Case: The first letter of every word is capitalized, with no spaces or underscores. It is commonly used in C++, C#, Visual Basic.
Examples: FirstName, LastName, NumberOfDevices.

2- Camel Case: The first letter of the first word is lowercase, and the first letter of subsequent words is uppercase, with no spaces or underscores. It is commonly used in Java and JavaScript.
Examples: firstName, lastName, numberOfDevices.

3- Snake Case: Words are separated by underscores, and all letters are lowercase. It is commonly used in Python and Ruby.
Examples: first_name, last_name, number_of_devices.

Thank you for reading 😊

1 year ago | [YT] | 40



@EpTechie

Thank you for the info 🙏

1 year ago | 0

@gerardhayden6568

Snake case, it didn't have a name but that is what we used with COBOL 30 years ago because it lacked case sensitivity

1 year ago | 0

@NotMarkKnopfler

In C I use camel case for functions, structs, types etc, and pascal case for classes.

1 year ago | 0

@mehmetakifyldz9328

And there is also kebap case. num-of-array

1 year ago | 0

@Anas_Vigilante

Snakes! Show up 👇

1 year ago (edited) | 0