Hmm, seems ok to me. clazz or klass. Not really a style rule...
I don't agree with the multivar. Everyone always complains about this one, that it's more maintenance to not multi them. Like this article. No one ever argues that it's distracting. In reality, copy pasting the word var is a waste of time.
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.
0
u/skitch920 Mar 27 '15 edited Mar 27 '15
Hmm, seems ok to me. clazz or klass. Not really a style rule...
I don't agree with the multi
var. Everyone always complains about this one, that it's more maintenance to not multi them. Like this article. No one ever argues that it's distracting. In reality, copy pasting the wordvaris a waste of time.