DEV Community

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

Collapse
 
detzam profile image
webstuff

Simple idea in naming:
Name your variables based on what information it will contain
Name your functions/methods based on wharmt they do
A function/method will go just one thing, but it can call another function/method which will help it do its job inside it

Collapse
 
maikomiyazaki profile image
Maiko Miyazaki

Your explanation is very clean and neat. It's easy to understand how to differentiate the names between functions, methods and variables! Thank you for sharing your tips!