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 (
listthat is a Map;accountListthat 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.