5. Avoid long names (< 15 characters is a good idea). Although the class name PhysicalOrVirtualProductOrService might seem to be a good class name at the time (OK, I�m stretching it on this example) this name is simply too long and you should consider renaming it to something shorter, perhaps something like Offering (NPS, 1996).
42
Mike Gershman
SCJP 1.4, SCWCD in process
Originally posted by Mike Gershman:
One warning about using long identifiers as comments: if the code changes so that the meaning of a variable changes, you may be tempted to skip changing every use of the identifier. Now the identifier is misleading.
Modern tools leave no excuse for this kind of laziness; renaming any class, method, or variable is only one click away in an IDE with refactoring features
Mike Gershman
SCJP 1.4, SCWCD in process
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
"I'm not back." - Bill Harding, Twister
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
42
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi