Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creative Terminology

I seem to use bland words such as node, property, children (etc) too often, and I fear that someone else would have difficulty understanding my code simply because the parts' names are vague, common words.

How do you find creative names for classes and components to make them more memorable?

I am particularly having trouble with generic tools which have no real description except their rather generic functional purpose. I would like to know if others have found creative ways to name things rather than simply naming them by their utility, such as AnonymousFunctionWrapperCallerExecutorFactory.

like image 270
too much php Avatar asked Aug 25 '09 05:08

too much php


1 Answers

It's hard to answer. I find them just because they seem to 'fit'.

What I do know, however, is that I find it basically impossible to move on writing code unless something is named correctly, and it 'feels' good. If it isn't named right, I find it hard to use, and the code is generally confusing.

I'm not too concerned about something being 'memorable', only 'accurate'.

I have been known to sit around thinking out loud about what to name something. Take your time, and make sure you are really happy with the name. don't be afraid of using common/simple words.

like image 72
Noon Silk Avatar answered Sep 22 '22 00:09

Noon Silk