3 ms·
You don't consider "data".length() == 4 to be short?
by pohl 15y ago
You don't consider "data".length() == 4 to be short?
- alex_c 15y agoNobody said anything against really short names, the article argues against non-descriptive variable names, whether short or long.
- evincarofautumn 15y agoIndeed, provided you know the problem domain, the most descriptive name (xs, x_rms) is almost always far shorter than the literal alternative (horizontal_positions, quadratic_mean_of_horizontal_positions).
- deleted 15y ago[deleted]
- Lockyy 15y agoWhy are you working under the assumption that that was his issue with the term data? Especially when he specifically described his problems with it.
- pohl 15y agoI'm not. Rather, I'm supporting the notion that as the relevant scope decreases, the weight of his objections to the variable name 'data' vanish and become dominated by the value of its brevity.