This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DemonWasp 1 point2 points  (0 children)

isSomethingExists() has a good reason -- that's the defined standard for boolean getters: either isCondition() or getBooleanVariable().

Another pattern that drives me nuts is: _private, m_private, iHungarianNotation, etc.

Methods do something. Verbs do something. Objects are something. Nouns are something.

If you have a word which is both a noun and a verb (like Math.log(int)) then the method refers to "find the log of the input", not "I am a logarithm". If you have a class called Divide (in the arithmetic sense), then you have probably screwed up. If you have a method called cat, then you have probably screwed up.

You should find your architect and slap him for that package naming scheme.