3 ms·
I think it's a bit silly that less-than-four-letter arguments/values/objects/functions are allowed in modern languages. I mean, what are the odds that the progr
by tormeh 12y ago
I think it's a bit silly that less-than-four-letter arguments/values/objects/functions are allowed in modern languages. I mean, what are the odds that the programmer is not writing horrible code in that scenario?
- oneeyedpigeon 12y agoThat's very subjective. Yes, one-letter variable names are usually a pain, but throwaway loop increments can be an exception. Three letter variable names are often perfectly acceptable, and optimal - what would you suggest I use instead of age, day, or max? Long variable names are often a massive pain, particularly those with multiple words separated by differing case or non-alpha characters.
- deleted 12y ago[deleted]
- ubertaco 12y agoSome trivial counterexamples (in ES6 for convenience): someArray.sort((a, b) => a - b); var odd = (x) => x % 2 == 0; highlightRows = rows.filter(odd); function isLegalAdult(age, locality){ ... }