Since these are generated offline, the keyboard heatmaps are meaningless and the representation is slightly misleading IMO.
Most Pressed Keys and Programming Syntaxes
41–50 of 75 posts
Re: Most Pressed Keys and Programming Syntaxes
#42Re: Most Pressed Keys and Programming Syntaxes
#43"Shift" is a big omission, though you can guess at it from the emphasis on certain numeric keys. One of the great things about Python is that there are fewer chorded characters. It's also one of the worst things about Lisp on a standard keyboard.
Re: Most Pressed Keys and Programming Syntaxes
#44It would be nice to see these heat maps normalized by the average frequency of each key. Then you can really see what stands out about each particular language.
Re: Most Pressed Keys and Programming Syntaxes
#45Re: Most Pressed Keys and Programming Syntaxes
#46Re: Most Pressed Keys and Programming Syntaxes
#47Earlier quoted context omitted.
It probably gets used about the same amount as the other languages, it's just that the parentheses get used an insane amount and outweigh all the other characters.
It might be more interesting to see these with the vowels factored out.
~ $ curl -s 'http://lib.store.yahoo.net/lib/paulgraham/onlisp.lisp' | egrep -o '.' | sort | uniq -c | sort -nr
18641
3277 )
3276 (
2561 e
2159 a
1934 s
1903 r
1672 n
1661 t
1477 l
1380 o
1287 c
1282 d
1067 p
1064 i
1030 m
[...]
Without vowels: 18641
3277 )
3276 (
1934 s
1903 r
1672 n
1661 t
1477 l
1287 c
1282 d
1067 p
1030 m
929 f
852 b
654 ,
601 g
[...]Re: Most Pressed Keys and Programming Syntaxes
#48Earlier quoted context omitted.
Still, the OP is right - for every character that can only be types by pressing SHIFT should also increase the counter for SHIFT.
If you want to be pedantic... "Shouldn't shift be twice as hot as the parentheses?" For offline analysis? No. Shift should be as hot as the SUM of both types of parentheses. In practice, both parentheses will be equal in count modulo some epsilon for unmatched parenthesis in strings and comments. Therefore, shift will be close to twice as either parenthesis. For online analysis? No. Shifted characters can come into e…
Shift is used for many combinations besides just parentheses, such as that capital at the start of this sentence. It would likely be more than twice as much.
Re: Most Pressed Keys and Programming Syntaxes
#49Re: Most Pressed Keys and Programming Syntaxes
#50I admit, the Lisp one at the end made me laugh. For most other languages the focus seems to be mainly on letters (typing out keywords/identifiers), so in that sense there is little evidence that one language would be easier to write than another. Additionally, I imagine that some of the code is auto-completed by an IDE, which this analysis fails to account for.
Shouldn't shift be twice as hot as the parentheses?