Why Should We Name Well?
We need to carefully consider the names we give things. Remember that writing source code is all about clear communication. A name creates a channel of understanding, control, and mastery. Appropriate naming means that to know the name is to know the object.
Good names really matter. The human brain can only hold about seven pieces of information concurrently[2] (although I’m sure I have a couple of defective slots, reducing this capacity). It’s already hard enough to cram all the information about a program into your head; we should not add complex naming schemes or require obscure references to make this task even harder.
Clear naming is one of the hallmarks of well-crafted code. The ability to name things well is an important ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access