3 ms·
I agree, the statement, "Pluralize the variable name instead of including the name of a collection type" massively increases the chance of referring to the wron
by robmcm 10y ago
I agree, the statement, "Pluralize the variable name instead of including the name of a collection type" massively increases the chance of referring to the wrong variables based on a simple typo. Also glancing at the code you have to pay extra attention to notice a single character.
In addition you have some words that don't pluralize well such as fruit or Lexus.
In my opinion the more verbose and unique you can make your variable names the better, even if that means adding redundant words.