際際滷

際際滷Share a Scribd company logo
Naming Things
A De鍖nitive Guide to
Nem Nomen
Nemonclatuer
What is code?
Ostensibly for the computer. In reality, its a recipe that has to be digested by two audiences: the computer and the developers. You have to encode behaviour and intent.
What is good code?
Good code is e鍖cient. By e鍖cient, I dont mean e鍖cient for the computer, I also mean e鍖cient for the human mind. To understand that, I want you to focus on an idea:
cognitive overhead.
Why is naming things
important?
Its our primary tool for communication. It is the artefact left behind of someones thoughts and intentions. A good name conveys how to use something and give you a
clear sense of when it should change.
Why is naming things
hard?
Often because when were forced to pick a name, we have to articulate a concept. Often it is hard to express a concept in a simple word or two. Ideas can be subtle.
Struggling to name something is actually an important part of of design. Di鍖culty indicates that the object is doing too much.
Variables
Who can tell me whats wrong here?
Remove all ambiguity about units!
No context. Hard to search for.
Some developers solve this problem with comments. But why is it you have to explain the code? Why cant the code explain itself?
Better. But elapsed time for what?
Best. The context is clear.
What does this code do?
Nothing has changed but for your ability to understand this code. To the computer, these expressions are identical. But everything important to you, the developer, has
changed.
Flagged for what?
Ah. Wouldnt want to mistake that one.
Abbreviations are hard to read. Why `res` instead of `response`?
Better.
Creates confusion. Did the author intend an array here?
If it is meant to be an array, let it be an array.
If it isnt meant to be an array, avoid numbers. This is a common pattern seen in tests.
This is better. Now youre articulating why you have two users: one is earlier and one is later.
Type su鍖xes usually add more context than is necessary, and cause greater churn when you replay one type for another (bigger concern in a dynamic language).
Better.
These properties and methods return booleans. But you wouldnt know it to look at them.
Better.
Methods
Redundancy.
Better.
Repeated pre鍖xes in a method name or property name often indicate one thing
You found another object!
Classes
Pre鍖xes: not the worst thing, but consider why this happens. Its because the author wanted to use the name File twice. Consider what would happen if they were
forced to pick another name.
Better.
Perhaps this also hints at an object though?
These names are red 鍖ags. Why?
What does a page manager do? Any guesses? Well, it manages a page. So anything that could plausibly be considered managing a page could easily get added to
this class. These classes quickly balloon out of control.
Heres an example. Imagine you have a page formatter.
By turning this into a formatted page, you are now talking about the end result of what this class does 油what youre trying to achieve. This allows you to think more
clearly about what is and isnt needed.
Speci鍖city is good, but use your judgement. For instance, its probably 鍖ne to call a postal address simply an address.
However, if your application deals with more than one type of address, you may want to consider increasing its speci鍖city.
Conventions
These methods invite confusion, because you constantly have to ask yourself is this object add, insert, or append?
Here, never have to think.
Always consider your domain. For instance, does your business sell to users?
Probably not. You should be able to speak the language of the domain.
Avoid patterns in names. Design patterns are implementation details, and encoding the pattern into the name prevents altering that class in the future to not use that
pattern. Theyre unnecessary information that usually only adds cognitive overhead.
Better. The API is clear to use, and thats all that matters.
Naming ergonomics
Directories and their structure are just as important as the 鍖le name. Both can add context and lower overhead for 鍖nding 鍖les or 鍖guring out where to place 鍖les. A well-
named directory can be more powerful than a well-named class.
Consider the ergonomics. Folders with too many items take longer to read. A folder with one item is like having a category with one item, which is not a useful category
to have.
Long names are bad, because they often contain too many concepts, indicating an object that has a high cognitive overhead.
They also lead to abbreviations, because typing out bookings_products_vehicle_types everywhere is cumbersome. (This is a real world example.)
If necessary, make the name longer. Brevity is good, but the ultimate goal is clarity. Here, the key concept is that we have vehicle types.
When the inevitable shortening happens, its easier to do things like this. Not perfect, but far better than bpvt.
If you have a term that can be taken multiple ways, that constitutes a pun. A List may be an type of object in your system, a BucketList may mislead a developer into
thinking it is a type of List, when in fact you meant something entirely di鍖erent.
Better.
What is it you do?
You are a translator for two audiences. You are the bridge between the human and the computer. You need to know how computers work and how humans work 油both
the humans which your software serves, and the humans which your software will by changed by. Your primary weapon in your toolbox against ambiguity and cognitive
overhead 油the forces that corrode a softwares maintainability油 is to name. You name things every day. Be mindful about the words you choose. Software should be
written to be read by another developer.
Indeed, the ratio of time spent reading versus writing
is well over 10 to 1. We are constantly reading old code
as part of the effort to write new code. ...[Therefore,]
making it easy to read makes it easier to write.
 Robert C. Martin (Uncle Bob)
Naming Things
A parable about
stones
Marco Polo describes a bridge, stone by stone. "But which is the stone that supports the bridge?"油

Kublai Khan asks.油"The bridge is not supported by one stone or another," Marco answers,油油油

"but by the line of the arch that they form. Kublai Khan remains silent, re鍖ecting. Then he adds:油

"Why do you speak to me of the stones?油It is only the arch that matters to me. Polo answers:油"Without stones there is no arch."
On Exactitude
To my mind exactitude means three things above all:
(1) a well-de鍖ned and well-calculated plan for the work in
question;
(2) an evocation of clear, incisive, memorable images;
(3) a language as precise as possible both in choice of
words and in expression of the subtleties of thought and
imagination.
- Italo Calvino

More Related Content

Similar to Naming Things (20)

Untangling spring week8
Untangling spring week8Untangling spring week8
Untangling spring week8
Derek Jacoby
How To Win At Software - Advice for New Engineers - by Gabe Johnson
How To Win At Software - Advice for New Engineers - by Gabe JohnsonHow To Win At Software - Advice for New Engineers - by Gabe Johnson
How To Win At Software - Advice for New Engineers - by Gabe Johnson
Gabe Johnson
Clean Code
Clean CodeClean Code
Clean Code
Chris Farrell
A class action
A class actionA class action
A class action
Luciano Colosio
(E book pdf) thinking in patterns with java
(E book   pdf) thinking in patterns with java(E book   pdf) thinking in patterns with java
(E book pdf) thinking in patterns with java
Raffaella D'angelo
E1f14172a91215931ed787d97dee1301fe7d
E1f14172a91215931ed787d97dee1301fe7dE1f14172a91215931ed787d97dee1301fe7d
E1f14172a91215931ed787d97dee1301fe7d
Klaus Lieblich
C# and java comparing programming languages
C# and java  comparing programming languagesC# and java  comparing programming languages
C# and java comparing programming languages
Shishir Roy
Low maintenance perl notes
Low maintenance perl notesLow maintenance perl notes
Low maintenance perl notes
Perrin Harkins
Technical Writing For Consultants
Technical Writing For ConsultantsTechnical Writing For Consultants
Technical Writing For Consultants
rlucera
WordCamp US: Clean Code
WordCamp US: Clean CodeWordCamp US: Clean Code
WordCamp US: Clean Code
mtoppa
Importance Of Being Driven
Importance Of Being DrivenImportance Of Being Driven
Importance Of Being Driven
Antonio Terreno
Creativity vs Best Practices
Creativity vs Best PracticesCreativity vs Best Practices
Creativity vs Best Practices
Supun Dissanayake
Six of the Best
Six of the BestSix of the Best
Six of the Best
Kevlin Henney
Graphql
GraphqlGraphql
Graphql
Neven Rakoni
Rethinking Object Orientation
Rethinking Object OrientationRethinking Object Orientation
Rethinking Object Orientation
IASA
Marketing Your Open Source Project - OSCON 2019_v04.pdf
Marketing Your Open Source Project - OSCON 2019_v04.pdfMarketing Your Open Source Project - OSCON 2019_v04.pdf
Marketing Your Open Source Project - OSCON 2019_v04.pdf
Amazon Web Services
A smarter way to learn java script
A smarter way to learn java scriptA smarter way to learn java script
A smarter way to learn java script
Bahria University Islamabad, Pakistan
A smarter way to learn java script
A smarter way to learn java scriptA smarter way to learn java script
A smarter way to learn java script
AdrianTrasca2
ScienceBehindUX
ScienceBehindUXScienceBehindUX
ScienceBehindUX
mlbonneville
Oops Concepts
Oops ConceptsOops Concepts
Oops Concepts
guest1aac43
Untangling spring week8
Untangling spring week8Untangling spring week8
Untangling spring week8
Derek Jacoby
How To Win At Software - Advice for New Engineers - by Gabe Johnson
How To Win At Software - Advice for New Engineers - by Gabe JohnsonHow To Win At Software - Advice for New Engineers - by Gabe Johnson
How To Win At Software - Advice for New Engineers - by Gabe Johnson
Gabe Johnson
(E book pdf) thinking in patterns with java
(E book   pdf) thinking in patterns with java(E book   pdf) thinking in patterns with java
(E book pdf) thinking in patterns with java
Raffaella D'angelo
E1f14172a91215931ed787d97dee1301fe7d
E1f14172a91215931ed787d97dee1301fe7dE1f14172a91215931ed787d97dee1301fe7d
E1f14172a91215931ed787d97dee1301fe7d
Klaus Lieblich
C# and java comparing programming languages
C# and java  comparing programming languagesC# and java  comparing programming languages
C# and java comparing programming languages
Shishir Roy
Low maintenance perl notes
Low maintenance perl notesLow maintenance perl notes
Low maintenance perl notes
Perrin Harkins
Technical Writing For Consultants
Technical Writing For ConsultantsTechnical Writing For Consultants
Technical Writing For Consultants
rlucera
WordCamp US: Clean Code
WordCamp US: Clean CodeWordCamp US: Clean Code
WordCamp US: Clean Code
mtoppa
Importance Of Being Driven
Importance Of Being DrivenImportance Of Being Driven
Importance Of Being Driven
Antonio Terreno
Creativity vs Best Practices
Creativity vs Best PracticesCreativity vs Best Practices
Creativity vs Best Practices
Supun Dissanayake
Rethinking Object Orientation
Rethinking Object OrientationRethinking Object Orientation
Rethinking Object Orientation
IASA
Marketing Your Open Source Project - OSCON 2019_v04.pdf
Marketing Your Open Source Project - OSCON 2019_v04.pdfMarketing Your Open Source Project - OSCON 2019_v04.pdf
Marketing Your Open Source Project - OSCON 2019_v04.pdf
Amazon Web Services
A smarter way to learn java script
A smarter way to learn java scriptA smarter way to learn java script
A smarter way to learn java script
AdrianTrasca2
ScienceBehindUX
ScienceBehindUXScienceBehindUX
ScienceBehindUX
mlbonneville
Oops Concepts
Oops ConceptsOops Concepts
Oops Concepts
guest1aac43

Recently uploaded (20)

Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0
Yann-Ga谷l Gu辿h辿neuc
Adobe Illustrator Crack Free Download 2025 latest version
Adobe Illustrator Crack Free Download 2025 latest versionAdobe Illustrator Crack Free Download 2025 latest version
Adobe Illustrator Crack Free Download 2025 latest version
saniasabbba
Code or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose BothCode or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose Both
Applitools
SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?
kiran10101khan
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
haroonsaeed605
AI Agents and More:Build Your AI Assistans
AI Agents and More:Build Your AI AssistansAI Agents and More:Build Your AI Assistans
AI Agents and More:Build Your AI Assistans
HusseinMalikMammadli
SE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.pptSE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.ppt
theworldimagine985
Computer Architecture Patterson chapter 1 .ppt
Computer Architecture Patterson chapter 1 .pptComputer Architecture Patterson chapter 1 .ppt
Computer Architecture Patterson chapter 1 .ppt
jaysen110
Wondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free DownloadWondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free Download
arshadkhokher01
iTop VPN Latest Version 2025 Crack Free Download
iTop VPN Latest Version 2025 Crack Free DownloadiTop VPN Latest Version 2025 Crack Free Download
iTop VPN Latest Version 2025 Crack Free Download
lr74xqnvuf
Metaverse Meetup: Explore Mulesoft MAC Project
Metaverse Meetup: Explore  Mulesoft MAC ProjectMetaverse Meetup: Explore  Mulesoft MAC Project
Metaverse Meetup: Explore Mulesoft MAC Project
GiulioPicchi
Hire Odoo Developer OnestopDA Experts.
Hire Odoo Developer  OnestopDA Experts.Hire Odoo Developer  OnestopDA Experts.
Hire Odoo Developer OnestopDA Experts.
OnestopDA
Instagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo websiteInstagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo website
AxisTechnolabs
Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025
Anadea
AI-Powered Chatbots for Employee Support
AI-Powered Chatbots for Employee SupportAI-Powered Chatbots for Employee Support
AI-Powered Chatbots for Employee Support
AutomationEdge Technologies
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
Ava Isley
Douwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-LatestDouwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-Latest
mubeen010khan
Advance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management OdooAdvance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management Odoo
Aagam infotech
OutSystems User Group Utrecht February 2025.pdf
OutSystems User Group Utrecht February 2025.pdfOutSystems User Group Utrecht February 2025.pdf
OutSystems User Group Utrecht February 2025.pdf
mail496323
DevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdfDevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdf
Justin Reock
Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0
Yann-Ga谷l Gu辿h辿neuc
Adobe Illustrator Crack Free Download 2025 latest version
Adobe Illustrator Crack Free Download 2025 latest versionAdobe Illustrator Crack Free Download 2025 latest version
Adobe Illustrator Crack Free Download 2025 latest version
saniasabbba
Code or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose BothCode or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose Both
Applitools
SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?
kiran10101khan
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
haroonsaeed605
AI Agents and More:Build Your AI Assistans
AI Agents and More:Build Your AI AssistansAI Agents and More:Build Your AI Assistans
AI Agents and More:Build Your AI Assistans
HusseinMalikMammadli
SE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.pptSE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.ppt
theworldimagine985
Computer Architecture Patterson chapter 1 .ppt
Computer Architecture Patterson chapter 1 .pptComputer Architecture Patterson chapter 1 .ppt
Computer Architecture Patterson chapter 1 .ppt
jaysen110
Wondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free DownloadWondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free Download
arshadkhokher01
iTop VPN Latest Version 2025 Crack Free Download
iTop VPN Latest Version 2025 Crack Free DownloadiTop VPN Latest Version 2025 Crack Free Download
iTop VPN Latest Version 2025 Crack Free Download
lr74xqnvuf
Metaverse Meetup: Explore Mulesoft MAC Project
Metaverse Meetup: Explore  Mulesoft MAC ProjectMetaverse Meetup: Explore  Mulesoft MAC Project
Metaverse Meetup: Explore Mulesoft MAC Project
GiulioPicchi
Hire Odoo Developer OnestopDA Experts.
Hire Odoo Developer  OnestopDA Experts.Hire Odoo Developer  OnestopDA Experts.
Hire Odoo Developer OnestopDA Experts.
OnestopDA
Instagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo websiteInstagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo website
AxisTechnolabs
Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025
Anadea
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
Ava Isley
Douwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-LatestDouwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-Latest
mubeen010khan
Advance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management OdooAdvance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management Odoo
Aagam infotech
OutSystems User Group Utrecht February 2025.pdf
OutSystems User Group Utrecht February 2025.pdfOutSystems User Group Utrecht February 2025.pdf
OutSystems User Group Utrecht February 2025.pdf
mail496323
DevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdfDevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdf
Justin Reock

Naming Things

  • 1. Naming Things A De鍖nitive Guide to Nem Nomen Nemonclatuer
  • 2. What is code? Ostensibly for the computer. In reality, its a recipe that has to be digested by two audiences: the computer and the developers. You have to encode behaviour and intent.
  • 3. What is good code? Good code is e鍖cient. By e鍖cient, I dont mean e鍖cient for the computer, I also mean e鍖cient for the human mind. To understand that, I want you to focus on an idea: cognitive overhead.
  • 4. Why is naming things important? Its our primary tool for communication. It is the artefact left behind of someones thoughts and intentions. A good name conveys how to use something and give you a clear sense of when it should change.
  • 5. Why is naming things hard? Often because when were forced to pick a name, we have to articulate a concept. Often it is hard to express a concept in a simple word or two. Ideas can be subtle. Struggling to name something is actually an important part of of design. Di鍖culty indicates that the object is doing too much.
  • 7. Who can tell me whats wrong here?
  • 8. Remove all ambiguity about units!
  • 9. No context. Hard to search for.
  • 10. Some developers solve this problem with comments. But why is it you have to explain the code? Why cant the code explain itself?
  • 11. Better. But elapsed time for what?
  • 12. Best. The context is clear.
  • 13. What does this code do?
  • 14. Nothing has changed but for your ability to understand this code. To the computer, these expressions are identical. But everything important to you, the developer, has changed.
  • 16. Ah. Wouldnt want to mistake that one.
  • 17. Abbreviations are hard to read. Why `res` instead of `response`?
  • 19. Creates confusion. Did the author intend an array here?
  • 20. If it is meant to be an array, let it be an array.
  • 21. If it isnt meant to be an array, avoid numbers. This is a common pattern seen in tests.
  • 22. This is better. Now youre articulating why you have two users: one is earlier and one is later.
  • 23. Type su鍖xes usually add more context than is necessary, and cause greater churn when you replay one type for another (bigger concern in a dynamic language).
  • 25. These properties and methods return booleans. But you wouldnt know it to look at them.
  • 30. Repeated pre鍖xes in a method name or property name often indicate one thing
  • 31. You found another object!
  • 33. Pre鍖xes: not the worst thing, but consider why this happens. Its because the author wanted to use the name File twice. Consider what would happen if they were forced to pick another name.
  • 35. Perhaps this also hints at an object though?
  • 36. These names are red 鍖ags. Why?
  • 37. What does a page manager do? Any guesses? Well, it manages a page. So anything that could plausibly be considered managing a page could easily get added to this class. These classes quickly balloon out of control.
  • 38. Heres an example. Imagine you have a page formatter.
  • 39. By turning this into a formatted page, you are now talking about the end result of what this class does 油what youre trying to achieve. This allows you to think more clearly about what is and isnt needed.
  • 40. Speci鍖city is good, but use your judgement. For instance, its probably 鍖ne to call a postal address simply an address.
  • 41. However, if your application deals with more than one type of address, you may want to consider increasing its speci鍖city.
  • 43. These methods invite confusion, because you constantly have to ask yourself is this object add, insert, or append?
  • 44. Here, never have to think.
  • 45. Always consider your domain. For instance, does your business sell to users?
  • 46. Probably not. You should be able to speak the language of the domain.
  • 47. Avoid patterns in names. Design patterns are implementation details, and encoding the pattern into the name prevents altering that class in the future to not use that pattern. Theyre unnecessary information that usually only adds cognitive overhead.
  • 48. Better. The API is clear to use, and thats all that matters.
  • 50. Directories and their structure are just as important as the 鍖le name. Both can add context and lower overhead for 鍖nding 鍖les or 鍖guring out where to place 鍖les. A well- named directory can be more powerful than a well-named class.
  • 51. Consider the ergonomics. Folders with too many items take longer to read. A folder with one item is like having a category with one item, which is not a useful category to have.
  • 52. Long names are bad, because they often contain too many concepts, indicating an object that has a high cognitive overhead.
  • 53. They also lead to abbreviations, because typing out bookings_products_vehicle_types everywhere is cumbersome. (This is a real world example.)
  • 54. If necessary, make the name longer. Brevity is good, but the ultimate goal is clarity. Here, the key concept is that we have vehicle types.
  • 55. When the inevitable shortening happens, its easier to do things like this. Not perfect, but far better than bpvt.
  • 56. If you have a term that can be taken multiple ways, that constitutes a pun. A List may be an type of object in your system, a BucketList may mislead a developer into thinking it is a type of List, when in fact you meant something entirely di鍖erent.
  • 58. What is it you do? You are a translator for two audiences. You are the bridge between the human and the computer. You need to know how computers work and how humans work 油both the humans which your software serves, and the humans which your software will by changed by. Your primary weapon in your toolbox against ambiguity and cognitive overhead 油the forces that corrode a softwares maintainability油 is to name. You name things every day. Be mindful about the words you choose. Software should be written to be read by another developer.
  • 59. Indeed, the ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code. ...[Therefore,] making it easy to read makes it easier to write. Robert C. Martin (Uncle Bob)
  • 61. A parable about stones Marco Polo describes a bridge, stone by stone. "But which is the stone that supports the bridge?"油 Kublai Khan asks.油"The bridge is not supported by one stone or another," Marco answers,油油油 "but by the line of the arch that they form. Kublai Khan remains silent, re鍖ecting. Then he adds:油 "Why do you speak to me of the stones?油It is only the arch that matters to me. Polo answers:油"Without stones there is no arch."
  • 62. On Exactitude To my mind exactitude means three things above all: (1) a well-de鍖ned and well-calculated plan for the work in question; (2) an evocation of clear, incisive, memorable images; (3) a language as precise as possible both in choice of words and in expression of the subtleties of thought and imagination. - Italo Calvino