Use pronounceable and meaningful variable names

Use pronounceable and meaningful variable names

Tags
Clean Code
Javascript
Software Development
Published
Published March 21, 2022
Author
Due Date
☑️ Topic: Variables
 
☑️ Idea: Choosing good names takes time but it saves even more time. Names should be easy to pronounce and they should give you useful information.
 
☑️ Benefits: Readability, maintainability
 
☑️ Guideline: The name shouldn’t contain the variable type and it shouldn’t have contractions.
 
// BAD const yyyymmdstr = moment().format("YYYY/MM/DD"); // GOOD const currentDate = moment().format("YYYY/MM/DD");