geekhack
geekhack Community => Off Topic => Topic started by: Gerk on Tue, 13 September 2011, 11:06:34
-
Thought this was interesting enough to share with everyone here.
http://www.mahdiyusuf.com/post/9947002105/most-pressed-keys-and-programming-syntaxes
-
Yeah, pretty cool ;-)
Would be nice to seperate shifted and non-shifted keypresses - he mentions that shift presses aren't shown, but it would be even better to split each key into two parts.
Surprising lack of curly braces in the C and C++ cases!
And I'm guesing at a fairly small sample size, because the difference between C and C++ for underscore is so huge - that's probably just the result of different naming conventions being used in each case. Although, comparing those would be another good application of the tool!
-
Yep probably also has to do with the particular projects they sampled to get the data. I was a bit surprised at a couple of the results as well. I do a LOT of php and I was really surprised that things like [] and ; didn't register more clicks than they did.
-
Just noticed that the Java sample doesn't have even usage of ( ) brackets - how odd!
-
Great post, it would also be nice to include actionscript for the occasional web design stuff. Oh well, this reminds me on much the PT layout is a pain [] or {} (alt gr + num row 7-0), and the loss of the much needed <> key if used over an ANSI board without remapping.
-
So they analyzed finished programs? I think if they used a keylogger during actual development, the results might look different.
A real developer will revisit the same code over and over -- refining, refactoring, renaming, etc. That's not reflected in the finished codebase.
In some IDEs, auto-complete reduces the amount of alpha chars you type, that's also not reflected here.
Of course a real developer types plenty that's not reflected in code: testing, emailing, wasting time on GH. Ask me how I know :biggrin:
-
Lol. No delete/backspace key.
Yeah.
Right.
thats for the testers to use.
-
Just noticed that the Java sample doesn't have even usage of ( ) brackets - how odd!
Also, isn't the Java heatmap swapped with some other? I really wonder how much use the '*' key would see in most codebases. (In C/C++ you'd at least use it to dereference pointers).
-
Yes they seem to have analyzed code after the fact, so no backspace or delete keys, no arrow keys, etc. I think they didn't name the posting well, it should have been the most used chars in languages, not the most typed keys.
There's a link from that page to the heatmap.js where you can copy and paste your own stuff (or type into a box) and see you're own heatmap. They probably just took some sample files from each language and ran them through that and posted the image that was a result. I don't think they did much in the way of critical selection of the actual projects used ...
-
Did you notice that in most of the languages, "I", "N", "T" are very heavily used? Hee hee.
-
With Direct X10, I bet capslock rates highly. :D