Even has Paul Graham name at the end, as if 'Look, this is totally legit!'
Most Pressed Keys and Programming Syntaxes
61–70 of 99 posts
Re: Most Pressed Keys and Programming Syntaxes
#62EDIT: And in fact here's a heatmap of core.logic (1K LOC) which is fairly OO-ish in its design - http://twitpic.com/6hwj88. ( ) are strong but do not dominate everything.
UPDATE: And here's a 1.4K LOC Clojure program, core.match http://twitpic.com/6hwo8w/full. ( ) again do not dominate.
Re: Most Pressed Keys and Programming Syntaxes
#63Re: Most Pressed Keys and Programming Syntaxes
#64Interesting to note the difference between C and C++ with regards to the '*' and '&' keys. I know there is a lot of raw pointer and address usage in C, but I'm surprised at how little these keys show up in C++. It's good to see that people are taking advantage of smart pointers ;) (It's subtle though, so I could be reading too much into it).
Seems odd that are said to be used more in C than in C++ (templates).
Re: Most Pressed Keys and Programming Syntaxes
#65The title is misleading. They just extracted character frequencies from source files which fail to capture 'Delete', 'Shift', 'Ctrl', 'Alt', etc keys. Even has Paul Graham name at the end, as if 'Look, this is totally legit!'
Shift is, but that could have (should have IMO) been extracted from the character frequencies in the source files...
Re: Most Pressed Keys and Programming Syntaxes
#66Interesting to note the difference between C and C++ with regards to the '*' and '&' keys. I know there is a lot of raw pointer and address usage in C, but I'm surprised at how little these keys show up in C++. It's good to see that people are taking advantage of smart pointers ;) (It's subtle though, so I could be reading too much into it).
Seems odd that are said to be used more in C than in C++ (templates).
ex:
typedef std::tr1::smart_ptr MyClassPtr;
Re: Most Pressed Keys and Programming Syntaxes
#67it'd be interesting to see these heatmaps in some sort of normalized way. for example, 'e' is the most common letter in english, so its the most commonly used letter in these programming languages. it'd be very interesting to see, for example, this heatmap with the intensities divided by each letter's frequency of use in the English language, or across a large set of data including a lot of different programming lang…
Except for Lisp, of course, where ( and ) are more common than e.
Re: Most Pressed Keys and Programming Syntaxes
#68Lisp: http://dl.dropbox.com/u/2196687/lisp-keystrokes.png
Doen't nearly all serious Lisp developers use Emacs? And doesn't Emacs have piles of shortcuts for wrapping/unwrapping/manipulating s-expressions? I'd imagine that the resulting number of parens is wildly different than the number originally typed.
Can any experienced Lispers comment on this? Where can I find a cheat sheet of such shortcuts?
Re: Most Pressed Keys and Programming Syntaxes
#69Earlier quoted context omitted.
For this reason, I think it would have been more interesting to ignore the alphabet keys and just heatmap the rest.
But then you lose the impact of the entire set of reserved words. At the point of ignoring the entire alphabet, you're looking at developer preferences for spacing and operators. Might be a nice sidebar to the existing heat maps.