News for hackers. Stuff that matters.
Re:Is naming things really that hard? by jstimpfle on Saturday March 04, 2017 @11:12AM (#13791459)
Yeah I didn't mean to imply that I pick bad names intentionally. Of course I pick the best name that I can come up with. But when I'm doing something I haven't done before, it's hard to judge whether a name is any good, maybe because I don't actually know precisely what I'm doing in the first place.

In these cases I err on the side of short names (preferably non-composite) because I know that making a longer name will not help. I just use that new name a little in a more exploratory type of programming. When it sticks it was a good choice. Examples: tree, spec, coverage, identity, isomorphism, object, struct, key, value, tag... These names need context, but they can turn out to be good names because they are short and distinct.

When the name doesn't stick and I can't come up with a better one, maybe I should do something entirely different.

There are no comments on this comment yet.