Pick one word for one abstract concept and stick with it.

🚨 Problems

For instance, it’s confusing to have fetch, retrieve, and get as equivalent methods of different classes. How do you remember which method name goes with which class? Sadly, you often have to remember which company, group, or individual wrote the library or class in order to remember which term was used. Otherwise, you spend an awful lot of time browsing through headers and previous code samples.

A consistent lexicon is a great boon to the programmers who must use your code.


const postController = "...";
const userManager = "...";
const profileDriver = "...";

âś… Solution


const postController = "...";
const userController = "...";
const profileController = "...";

💪🏽 Benefits

  • Improving code readability.
  • Improving code maintainability.
  • Clean Code - Page 26 - Pick One Word per Concept