Monday, October 11, 2010

why underscores are bad for variable / method names

a_word: 7 strokes, 1 of which is a chord
aWord: 6 strokes, 1 of which is a chord
a-word: 6 strokes, no chords

In terms of complexity, hyphenated names are the way to go. LISP got this right.

Of course, this assumes a US-QWERTY-like layout. It could change for other keyboard layouts.


Notes

  1. devyn posted this