How to name things: the hardest problem in programming
summary
Naming is hard but improvable: the talk shows concrete techniques — expand vocabulary by reading and using reference tools, mine domain jargon from Wikipedia, and make renaming a regular refactoring step via code review and your editor. It exposes common failures (meaningless names like data, single-letter names like i, JavaBeans get/ is misuse) and gives rules (no abbreviations, prefer concrete domain words). It points to practical tools such as Mac Dictionary, reports 98 million "foo" results on GitHub, and urges automated rename in IDE plus committing incremental renames.
AI-written summary · about
chapters (36)
- 0:00Intro
- 0:28Phil Karlton on naming
- 2:26Stephen King on pair programming
- 2:40Anne Rice on development hardware
- 2:59Ernest Hemingway on user personas
- 3:15W. Somerset Maughamon enterprise architecture
- 3:47Neil Gaiman on code review
- 4:18Neil Gaiman on continuous delivery & refactoring
- 8:16Lewis Carroll on bad naming
- 8:51Deliberately meaningless names
- 9:45What is the worst ever variable name?
- 11:39Abbreviations are ambiguous
- 13:35One letter is too short for type names as well
- 16:02BASIC DEFINITIONS
- 17:02Multiple meaningless words are meaningless
- 17:50Vague words are vague
- 19:00JavaBeans Specification (1996/1997)
- 20:42How to solve the naming problem
- 21:35Become a better writer
- 22:56Improve your vocabulary
- 24:12Improve your general vocabulary
- 25:35Lexical Gap
- 26:28Learn domain-specific vocabulary
- 28:00Adopt better naming practices
- 30:01Overcome fear of renaming
- 31:09Use dictionary words
- 34:48Expand single-letter names
- 35:14Limit name word count
- 36:39Describe meaning
- 38:53Choose concrete words
- 39:39Use a large vocabulary
- 40:59Use problem domain terms
- 44:18Omit type information
- 44:49Prefer collective nouns for collections
- 46:23Naming guidelines paper
- 47:04Summary
