I was just saying it's an overused keyword and it's practically copy/pasted everywhere. It is undoubtably the most used word in the language, and in my opinion, multi-var declarations pollute code.
And just for fun, for N var declarations:
// ctrl-c ctrl-v
3 + 1 + N = 4 + N // var, ctrl-c, (N) ctrl-v
// If you consider ctrl-c ctrl-v as 4 keystrokes instead of 2
3 + 2 + 2N = 5 + 2N // var, ctrl-c, (N) ctrl-v
// var
3N // (N) var
The first case: ctrl-c ctrl-v is faster after the 2nd var.
The second case: ctrl-c ctrl-v is faster after the 5th var.
This doesn't account for the fact that ctrl is a shared key and the finger doesn't move, nor the fact that c and v are neighboring characters.
2
u/cresquin Mar 28 '15
Why would you copy/paste var? Typing
vartakes ~200ms and is fewer keystrokes than select text -> ctrl-c -> move cursor to new position -> ctrl-v.