Holywar
Member
- Joined
- Dec 8, 2013
- Member Type
- Student or Learner
- Native Language
- Russian
- Home Country
- Ukraine
- Current Location
- Ukraine
I am an IT guy and in my code I often make variables which are supposed to store the amount of something countable. There is a general agreement that these variables should be named "something + count" in camel case.
So my question is - let's say I am storing the amount of messages user has posted, do I name the variable messageCount or messagesCount? This has been annoying me for quite a while now.
p.s. My guess would be to use singular, but I can't explain why.
So my question is - let's say I am storing the amount of messages user has posted, do I name the variable messageCount or messagesCount? This has been annoying me for quite a while now.
p.s. My guess would be to use singular, but I can't explain why.