Mahdi Yusuf: Most Pressed Keys and Programming Syntaxes

Mahdi Yusuf


Most Pressed Keys and Programming Syntaxes

Wednesday, September 7, 2011

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/

Discussion


If you enjoyed what you read, I would consider subscribing. I am sure there is more awesome to be found.

  1. zpartal reblogged this from dustyprogrammer
  2. thehiddenwiki reblogged this from dustyprogrammer
  3. developer-software reblogged this from adamlaiacano
  4. swiping-webpages reblogged this from adamlaiacano
  5. wild-dagga reblogged this from adamlaiacano
  6. whey--protein reblogged this from adamlaiacano
  7. devzeal reblogged this from adamlaiacano
  8. mango-diet reblogged this from adamlaiacano
  9. hcg--diet--info reblogged this from adamlaiacano
  10. wild-lettuce reblogged this from adamlaiacano
  11. wild-lettuce reblogged this from adamlaiacano
  12. salvia--divinorum reblogged this from adamlaiacano
  13. salvia--divinorum reblogged this from adamlaiacano
  14. buy--poppers reblogged this from adamlaiacano
  15. buy--poppers reblogged this from adamlaiacano
  16. magic--mushrooms reblogged this from adamlaiacano
  17. magic--mushrooms reblogged this from adamlaiacano
  18. wild-dagga reblogged this from adamlaiacano
  19. wild-dagga reblogged this from adamlaiacano
  20. mutuelle-en-france reblogged this from dustyprogrammer
  21. zmyaro reblogged this from dustyprogrammer
  22. kataskeuh-istoselidon reblogged this from dustyprogrammer
  23. rubeyz reblogged this from guavi
  24. spearare reblogged this from guavi
  25. abalidoth reblogged this from guavi and added:
    Python ALL the things! Also, I’m curious what Mathematica would look like.
  26. guavi reblogged this from did-you-reboot and added:
    ffffffff shell and perl syntax it hurts to look at Oh LISP.
  27. scienceyeah reblogged this from did-you-reboot
  28. sassypotassium reblogged this from did-you-reboot
  29. did-you-reboot reblogged this from dustyprogrammer and added:
    Oh LISP. PARENTHESES PARTY.
  30. nhmortgagebroker reblogged this from dustyprogrammer
  31. leetakeuchi reblogged this from cutlerish
  32. barbieqfreak reblogged this from cutlerish
  33. boxeddreams reblogged this from cutlerish


Copyright 2012 Mahdi Yusuf
Errrrday I be programmin' (oh and hustlin' too)