News for hackers. Stuff that matters.
Re:Is naming things really that hard? by rkrzr on Saturday March 04, 2017 @06:19AM (#13790393)
In my experience there are a couple of reasons that lead to bad names in programs:

- it takes effort to think of a good name. And more of the linguistically creative type instead of the logical reasoning type which makes up most of the rest of programming.

- it takes domain expertise to pick a good name

- if you stare too long at the same piece of code it becomes harder to see it through the eyes of someone who has never seen that code before

- almost everybody uses in English in their programs, but many people are not native speakers

But I think making an actual effort to pick a good name already goes a long way. It forces you to think about the problem at hand and how you could communicate that to somebody else.

There are no comments on this comment yet.