Is using "is" to name Boolean variables bad practice?

worked picture worked · Aug 5, 2011 · Viewed 19k times · Source

Is naming Booleans that start with "is" bad practice now? My manager believes that "isAnything" is outdated and poor practice. Is this true?

myManager.isLame ? correct() : incorrect();

Answer

Tim picture Tim · Aug 5, 2011

It's used quite often in a lot of languages, but I don't know if it can be said with certainty that it's the preferred method.

I think consistency and everyone on a given team using the same standards/styles is the important thing to bear in mind.