Interface naming in Java - Stack Overflow - 0 views
-
interfaces define
-
capabilities
-
this is one sensible interface naming option, if the interface encapsulates a cohesive set of behaviors and yes, compared to blindly following the meaningless I+ convention, it requires some thought, but thinking of an appropriate name also forces you to (re)consider the interface's primary responsibility and how it fits into the overall design imho, a class diagram for a domain model should be almost fluently readable english
-
- ...16 more annotations...
-
Sometimes an Adjective doesn't make sense, but I'd still generally be using interfaces to model behavior, actions, capabilities, properties, etc,... not types.
-
Also, If you were really only going to make one User and call it User then what's the point of also having an IUser interface?
-
if you are going to have a few different types of users that need to implement a common interface, what does appending an "I" to the interface save you in choosing names of the implementations?
-
Implementing classes should be uglier to discourage their use.