Author Topic: Most Pressed Keys in programming  (Read 3285 times)

0 Members and 1 Guest are viewing this topic.

Offline Gerk

  • Thread Starter
  • Posts: 448
Most Pressed Keys in programming
« 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
Rosewill RK-9000RE (reds) | Das Keyboard Model S Professional Silent (browns) | Leopold TKL (browns) | F21-7D "Mechanical Keyboard" (Blue Alps) | Filco Majestouch TKL (blues) | Goldtouch V2 x 2 | Matias Ergo Pro x 2 | Kinesis Freestyle Pro (browns) | Kinesis Freestyle Edge (reds)

Offline Soarer

  • * Elevated Elder
  • Posts: 1918
  • Location: UK
Most Pressed Keys in programming
« Reply #1 on: Tue, 13 September 2011, 11:24:50 »
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!

Offline Gerk

  • Thread Starter
  • Posts: 448
Most Pressed Keys in programming
« Reply #2 on: Tue, 13 September 2011, 11:28:53 »
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.
Rosewill RK-9000RE (reds) | Das Keyboard Model S Professional Silent (browns) | Leopold TKL (browns) | F21-7D "Mechanical Keyboard" (Blue Alps) | Filco Majestouch TKL (blues) | Goldtouch V2 x 2 | Matias Ergo Pro x 2 | Kinesis Freestyle Pro (browns) | Kinesis Freestyle Edge (reds)

Offline Soarer

  • * Elevated Elder
  • Posts: 1918
  • Location: UK
Most Pressed Keys in programming
« Reply #3 on: Tue, 13 September 2011, 11:42:30 »
Just noticed that the Java sample doesn't have even usage of ( ) brackets - how odd!
« Last Edit: Tue, 13 September 2011, 16:57:38 by Soarer »

Offline AlleyViper

  • Posts: 101
Most Pressed Keys in programming
« Reply #4 on: Tue, 13 September 2011, 16:22:10 »
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.

Offline jpc

  • Posts: 363
Most Pressed Keys in programming
« Reply #5 on: Tue, 13 September 2011, 21:23:47 »
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:

RSI prevention recipe:[/B] Kinesis Contoured, Colemak layout, touch typing, Contour Design Rollermouse,  Logitech TrackMan Wheel, Logitech m570 trackball, "workrave" break timer software, "awesome" window manager, tenkeyless boards, cherry browns, Wang 724 with "ghetto green" ALPS, standing desk and/or comfy adjustable chairs, stress reduction, computer time reduction.

Fun non-ergonomic things: bolt modded Model M Space Saving Keyboards with new springs, Kensington Expert Mouse v7, Unicomp Endurapro, Northgates

Offline thebilgerat

  • Posts: 68
Most Pressed Keys in programming
« Reply #6 on: Wed, 14 September 2011, 00:59:30 »
Quote from: ripster;415809
Lol.  No delete/backspace key.

Yeah.

Right.

thats for the testers to use.

Offline JBert

  • Posts: 764
Most Pressed Keys in programming
« Reply #7 on: Wed, 14 September 2011, 07:57:04 »
Quote from: Soarer;415516
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).
IBM Model F XT + Soarer's USB Converter || Cherry G80-3000/Clears

The storage list:
IBM Model F AT || Cherry G80-3000/Blues || Compaq MX11800 (Cherry brown, bizarre layout) || IBM KB-8923 (model M-style RD) || G81-3010 Hxx || BTC 5100C || G81-3000 Sxx || Atari keyboard (?)


Currently ignored by: nobody?

Disclaimer: we don\'t help you save money on [strike]keyboards[/strike] hardware, rather we make you feel less bad about your expense.
[/SIZE]

Offline Gerk

  • Thread Starter
  • Posts: 448
Most Pressed Keys in programming
« Reply #8 on: Wed, 14 September 2011, 13:28:27 »
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 ...
Rosewill RK-9000RE (reds) | Das Keyboard Model S Professional Silent (browns) | Leopold TKL (browns) | F21-7D "Mechanical Keyboard" (Blue Alps) | Filco Majestouch TKL (blues) | Goldtouch V2 x 2 | Matias Ergo Pro x 2 | Kinesis Freestyle Pro (browns) | Kinesis Freestyle Edge (reds)

Offline Pretendo

  • Posts: 154
Most Pressed Keys in programming
« Reply #9 on: Mon, 19 September 2011, 17:33:14 »
Did you notice that in most of the languages, "I", "N", "T" are very heavily used? Hee hee.
IBM Model F-122 6110347 -- September 13th, 1984
IBM Model M 1391404 -- April 14th, 1988
Rosewill RK-9000

Offline aynjell

  • Posts: 135
Most Pressed Keys in programming
« Reply #10 on: Wed, 21 September 2011, 17:37:27 »
With Direct X10, I bet capslock rates highly. :D
Das Keyboard Professional -mx blue- @ Work
Das Keyboard S Ultimate Silent -mx brown- @ Home

Do not fart in the same room as a dark brother or sister, to do so is to invoke the wrath of Sithis...