2 ms·
Naming things is hard. Often when names are very long, they could be shortened, because they are in a function, which already narrows down the context and makes
by zelphirkalt 4y ago
Naming things is hard. Often when names are very long, they could be shortened, because they are in a function, which already narrows down the context and makes a shorter name still understandable. Very long names can also sometimes be a code smell, if they are relating to a lot of global state, which is not narrowed down in context by where it is defined.
Sometimes however, it is really difficult to come up with a shorter name. I think it is definitely a skill, that takes practice and never is really perfected.