2nd hardest thing in computer science
summary
Naming is the second-hardest problem after cache invalidation, and concrete evidence shows 70% of source-code identifiers are developer choices, so naming decisions shape most code. Examples: getters that perform side effects, functions that return different types than their names imply, and one method that returned highest vs lowest price depending on user state. Practical fixes include use domain-driven names, stick to one naming convention, make commits with one-line summary plus rationale, use reviews and refactors to enforce quality.
AI-written summary · about
chapters (18)
- 0:00Introduction to naming
- 1:06Why naming matters
- 5:26Naming and code understanding
- 9:04Business terms in code
- 11:15Broken window theory
- 13:48Design patterns misuse
- 14:34Semantics over syntax
- 14:58Common naming issues
- 16:46Misleading documentation
- 18:12Single responsibility
- 18:34Abbreviations and synonyms
- 20:02Comments and magic numbers
- 21:06Good naming practices
- 23:10Commit messages importance
- 23:34Enforcing naming standards
- 24:17Practice and reading
- 25:20Code ownership and reviews
- 25:45Q&A
