Use the same vocabulary for the same concept

Use the same vocabulary for the same concept

Tags
Clean Code
Javascript
Software Development
Published
Published March 14, 2022
Author
Due Date
 
☑️ Topic: Functions
 
☑️ Idea: Pick one word per concept and stick with it. Consistency, consistency, consistency!
 
☑️ Benefits: Readability
 
☑️ Guideline: Don’t use synonyms in names of different methods, use the same word. This is a must if the methods are closely related (e.g. they belong to the same class).
 
// BAD getUserInfo(); getClientData(); getCustomerRecord(); // GOOD getUser();