According to Steve McConnell in Code Complete 2, Chapter 11:
A variable should fully and accurately describe the entity the variable represents.
The same applies for classes, methods, etc.
Chapter 11 goes on to discuss name lengths, naming conventions, and more.
I often use the
pattern name in the class name to help convey what the class does (i.e., WidgetDAO or WidgetMemento.)
Is there a specific type of class/method that you are having difficulty naming?
Just don't do what a former coworker of mine did. He named everything Fred. Fred1, Fred2. Seriously. The rest of us were ready to inflict bodily harm.
[ September 03, 2006: Message edited by: Scott Johnson ]