4 ms·
To me, naming has two competing and somewhat contradictory goals. Names need to (1) descriptive and (2) short and memorable. Often people who try to write real
by BurningFrog 10y ago
To me, naming has two competing and somewhat contradictory goals. Names need to (1) descriptive and (2) short and memorable.
Often people who try to write real "good" code overdo the descriptiveness and end up with technically perfectly precise names that are awful to read and remember.
Learning how to find a short, yet descriptive name for things is real hard, and very important. It's the closest I come to being a poet in my work.
The third goal I do these days is that names should be unique, if possible. When I search the project, it's best if I don't find several things with the same name.