DEV Community

Discussion on: Clean Code Applied to JavaScript — Part II. Variables

Collapse
 
murrayvarey profile image
MurrayVarey

Use the same vocabulary for the same variable’s type

This is a great point that is rarely mentioned. I sometimes find myself doing this wrong -- using different terms for the same concept, often with the intention to make them distinct. Really, I've just made the code confusing.

Excellent article. Naming may seem trivial, but it is so important. Such a small thing which can make code far more readable. Anyone who creates good variable names is okay by me!