4 ms·
"the context usually defines what is in there" is part of the problem. You really should need to know the context to know what a variable is. Sure "countCustom
by chrismcb 8y ago
"the context usually defines what is in there" is part of the problem. You really should need to know the context to know what a variable is.
Sure "countCustomers(list)" gives you an idea of what list is (well sort of, is list a list of customers, or is it a list of people, some of whom are customers?) But "list.count" doesn't give you any info.
The other issue is it makes it difficult to do global searches.
And code reviews are more difficult as I may not be able to glean the context from the few lines that show up in the diff.
Variable names should be succinct, as long as they need to be and no longer.