52 ms·
The less decisions you make through you programming day, the more you achieve and the less stressful the job is. Naming variables is a decision (I am looking a
by thesz 10y ago
The less decisions you make through you programming day, the more you achieve and the less stressful the job is.
Naming variables is a decision (I am looking at you, function arguments in most mainstream languages). Naming variables once and for all is a big and heavy decision (and now it is time for class members to be looked at).
For one operator in Haskell I often have to invent names for three-to-five variables in C#.
- tikhonj 10y agoThat's a great way of putting it. Sure, sometimes an intermediate name helps—that's when I reach for `where` or `let`. But much of the time the extra name would just be extra noise that obscures what the code is doing and makes it harder to read at a glance.