DEV Community

Discussion on: What are your personal stories/examples of "naming things"?

Collapse
 
dvdmuckle profile image
David Muckle

Naming computers is fun. Naming variables is not. With computers, you can have some sort of theme going on that partially related to their uses (IE all our servers are named after Greek gods.), and since there are usually so few of them, that's fine. With variables, you have to name them in a useful yet concise manner. That gets hard if you're dealing with similar variables, of functions that are closely tied with these variables.