6 ms·
> If a 6 character variable name can be shortened to 5 characters without losing meaning, then I do it While i totally agree with the general sentiment of your
by Raphael_Amiard 16y ago
> If a 6 character variable name can be shortened to 5 characters without losing meaning, then I do it
While i totally agree with the general sentiment of your post, i'm really not sure about this one.
Or rather, im rly not sure abt dis one ;)
It's all about balance really, and very often this balance is only subjective, even if we generally don't like this idea
- tome 16y agoSure, but to be charitable to edw519, it's possible to interpret the remark as "can be shortened ... without compromising meaning".
- Raphael_Amiard 16y agoDefinitely, that's why i said i agreed with the general sentiment. I generally reason in exactly the same way so i understand from where GP is coming from.
- T_S_ 16y agoInteresting example. In Mathematica, they opted for fully spelled out function names with caps to indicate new words for minimal ambiguity. For example LinearSolve is not linsolve or lnsolve or lsolve or even ls as it is in other languages or libraries. This makes the names of standard mathematical functions easier to remember or guess at. Your minima may not be my minima!
- threepointone 16y agoHere's an example regarding this that affects me in javascript - var t = this; and then every time I refer to 't', I save 3 bytes. It's something js compressors can't do, and every byte counts in the end :)