1 The name 'isValid' in a method typically implies a Boolean return value, but when used in contexts where additional data (like an internal ID) is returned, it creates a misleading semantic association that confuses callers.
“isValid gives the idea that a Boolean will be returned. Often this is the case but sometimes we try to be smart...”