Uncommunicative Name

Software is run by computers, but written and read by humans. Names provide important information to developers who are trying to understand a piece of code. Patterns and challenges when naming a method or class can also provide clues for refactoring.

Symptoms

  • Difficulty understanding a method or class.
  • Methods or classes with similar names but dissimilar functionality.
  • Redundant names, such as names which include the type of object to which they refer.

Solutions