I know that the convention in Java for boolean getters is include the prefix “is”.
But what if the subject is plural? That is, what if instead of wanting to know if a store is open, I wanted to know if all the stores are open?
isStoresOpen() doesn’t make sense in English.
I’m tempted to write getters like:
areStoresOpen areDogsCute areCatsFuzzy
And I think that would make sense, but I’ve been told by others that I should just suck it up and abandon subject verb agreement and use
Anyway, what should I do for boolean getters which operate on a plural subject?
I can’t remember which book this was from, but the essence is that code will be read many more times than it’s written. Write for readability.