I have a quick question that is not technical, but I sometimes wonder what is better ...
Do you use singular or plural in the names of arrays, maps, sets, etc.? Example:
disc
1 std::map<string,double> age; 2 age["diego maradonna"] = 49;
Multiple
1 std::map<string,double> ages; 2 ages["diego maradonna"] = 49;
In the plural version, the second line is not very pleasant (because you are looking at the age, not the age of Maradonna). In a single version, the first line does not sound right (because the card contains many ages).
variables naming-conventions
Frank
source share