Use of singular and plural names for functions,etc


#1


Hi, I would like to talk with you about a topic.
On many occasions I have problems in my own codes as of other student friends, due to the use of nomenclatures in the plural and singular.
In fact this has led me to stop using them if I can.
Names of functions, variables, etc. such as:
Number / numbers
Student / students
etc..
I try to use names in the singular and if it is not possible I list them:
Num_1
Num_2
Student_1
Student_2
Or try to look for very different names:
Student_red
Student_green
This made me very easy to write code without so many errors.
A friend who works as a programmer told me that in his company they take very seriously what names to put the functions and variables, etc.
I also recommend reading the book: clean code.
What do you think of this?.
Do you use a system to better implant the names?
All opinions will be welcome.


Replace this line with your code.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.