Re:What science says about naming in programming
by stevedonovan on Sunday January 08, 2017 @07:28AM
(#13349437)
I like the rule-of-thumb that short identifiers are fine if their context is limited in length - particularly if proper lexical scoping is supported. Humans do context very well, and imposing some arbitrary length limit ignores this.
[ Parent
| on HN ]
Re:What science says about naming in programming
by edblarney on Sunday January 08, 2017 @07:40AM
(#13349474)
This is important.
When you're inside a function, dealing with very limited scoped variables, people get that.
People also 'get' attributes of classes and can grasp that context.
You know what's rational - that the 'length' of an array is just called 'length' :)
Anything else would be missing the point.