The Most Pressed Keys in Various Programming Languages
Join the DZone community and get the full member experience.
Join For Freei 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 don't 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
Published at DZone with permission of Mahdi Yusuf, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments