DEV Community

Discussion on: Newbie's Cheatsheet: Commonly used verbs for naming functions, methods and variables

Collapse
 
ninofiliu profile image
Nino Filiu

Thanks for this quality reference document!

This strongly echoes this part of Clean Code about picking one word per concept:

Pick one word for one abstract concept and stick with it. For instance, [...] itโ€™s confusing to have a controller and a manager and a driver in the same code base. What is the essential difference between a DeviceManager and a ProtocolController? Why are both not controllers or both not managers? Are they both drivers really? The name leads you to expect two objects that have very different type as well as having different classes.

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

Collapse
 
maikomiyazaki profile image
Maiko Miyazaki

Thank you for your words, Nino! That section of the book definitely convinced me why consistent word of choice is the key. I'm also grateful to know that the book is fully available as a PDF! Thanks for sharing your ideas and the link!