On Inquisitive Variable Names
They say that code should read like well-written prose, and that code is written to be read by people—it’s only incidental that machines do something with whatever we create. To those ends, prefixing the names of variables of the boolean type with “is” or “has” or another interrogative word has the effect of leading the reader to expect an answer—“yes” or “no,” or in the parlance of the language, true or false. This communicates to the reader that the variable represents a boolean, and primes them for approaching the next part of the expression as something that may or may not happen. ...