Reputation: 19717
I've found that in programs, I inevitably have a couple of variables that are named along the lines of numberOfBooks
, or numberOfPeople
. Is there a commonly used word that makes sense that's a bit shorter than numberOf
?
Upvotes: 0
Views: 510
Reputation: 881643
Count or quantity are the usual suspects so you could get away with things like:
bookCount
bookQty
bookQuant
and so forth. But you don't have to use full words, as shown in the Qty
abbreviation above.
If you wanted to stay close to what the other programs are using, just use something like:
numBooks
numPeople
Upvotes: 3