Skip to content

Meaningful Names

Status: ⏳ PENDING

The inverse of this chapter's rules — practices to recognize and avoid. Each will get a junior-level definition, a real example of the harm it causes, and the clean alternative.

Anti-Patterns to Cover

  • Misleading names (list that is a Map; accountList that is a Set)
  • Noise words (Manager, Processor, Data, Info, Helper)
  • Mental mapping (single-letter loop vars beyond i/j/k)
  • Puns (same word with two meanings in different layers)
  • Gratuitous prefixes/suffixes (m_field, _field, IFoo, FooImpl)
  • Encoded types (Hungarian notation in a typed language)

See the chapter README for the positive rules.