Most Pressed Keys and Programming Syntaxes

I switch between programming languages quite a bit; I often wondered what happens when having to deal with the different syntaxes, does the syntax allow you to be more expressive or faster at coding in one language or another. I dont really know about that; but what I do know what keys are pressed when writing with different programming languages. 

This might be something interesting for people who are deciding to select a programming language might look into, here is a post on the answer to the aged question of: Which programming language should I learn?

As far as I can tell languages with a wider focused spread across the keyboard are usually syntaxes we usually associate with ugly languages (ugly to read and code). ex. shell and perl.

You might argue that the variables names being used will alter the results, but as most languages programming have conventions for naming but we can assume a decent spread for variable names. I don’t offer conclusions, just poorly layout the facts. Although the heat map does miss out on things like shift and caps. ex. in perl with the dollar sign. ($)

Whitespace hasn’t been taken into consideration (tabs and spaces) which would have been a cool thing to see. 

The data that was used to gather this information was spread amongst various popular Github projects. 

Javascript

Shell

Java

C

C++

Ruby

Python

PHP

Perl

ObjC

Lisp 

Lisp code here was written by Paul Graham.

References

  1. heatmap.js http://www.patrick-wied.at/projects/heatmap-keyboard/

Subscribe!

Want to be notified about new blog posts and various thoughts on releasing announcing and creating products? I’ll let you know. All you need to do is enter your email below.

I hate spam too, so you have nothing to worry about.

No spam ever, just useful content. Unsubscribe at any time.

464 notes

  1. poignantperfume reblogged this from notundefined
  2. rodny reblogged this from dustyprogrammer
  3. ponidimitry reblogged this from dustyprogrammer
  4. adityadevgupta reblogged this from dustyprogrammer
  5. sunzen reblogged this from dustyprogrammer
  6. spearare reblogged this from guavi
  7. nitroyogi reblogged this from dustyprogrammer
  8. takuyaki3 reblogged this from dustyprogrammer
  9. drtomcrick reblogged this from dustyprogrammer
  10. tuxedocat-log reblogged this from dustyprogrammer
  11. ukar reblogged this from dustyprogrammer
  12. aomashinku reblogged this from dustyprogrammer
  13. interglacial reblogged this from dustyprogrammer and added:
    やっぱりeが多いのはホームズの言うとおりですな。オチのLispは流石ですな!LaTeXだとどうなるんだろ。
  14. odgw reblogged this from dustyprogrammer
  15. nerimemo reblogged this from dustyprogrammer
  16. litmusconfig reblogged this from dustyprogrammer
  17. domon reblogged this from dustyprogrammer
  18. notundefined reblogged this from dustyprogrammer and added:
    BONUS JOKE: “The CoffeeScript...cold, empty white spot where the semicolon should be.”...
  19. braindead reblogged this from dustyprogrammer and added:
    http://www.mahdiyusuf.com/post/9947002105/most-pressed-keys-and-programming-syntaxes-2 “interesting”
  20. infornateci reblogged this from dustyprogrammer
  21. arvindravi reblogged this from dustyprogrammer
  22. dada213gt reblogged this from dustyprogrammer
  23. wintermute1968 reblogged this from dustyprogrammer
  24. skontova reblogged this from dustyprogrammer
  25. qtbon reblogged this from dustyprogrammer