News for hackers. Stuff that matters.
Re:Most Pressed Keys and Programming Syntaxes by jakejake on Thursday July 12, 2012 @12:31AM (#4233015)
I can understand 0 and 1 being frequently used. But I wonder why 5,6 & 7 seem to be under-used compared to the other numbers?
Re:Most Pressed Keys and Programming Syntaxes by zdw on Thursday July 12, 2012 @01:01AM (#4233090)
I was thinking the same thing until I looked at Perl, which has 4 being quite frequent.

The reason, of course, is that 4 is also $, which is used to denote a scalar in Perl.

Thus, because 5,6,7 correspond to %,^,&, which generally get used to a lesser degree for things like modulo, hashes, exponentiation and logical-and, they're used less.

Re:Most Pressed Keys and Programming Syntaxes by irahul on Thursday July 12, 2012 @01:06AM (#4233110)
> I can understand 0 and 1 being frequently used. But I wonder why 5,6 & 7 seem to be under-used compared to the other numbers?

The heat map isn't accounting for shift. 5,6,7 also include %,^,&

Re:Most Pressed Keys and Programming Syntaxes by balbeit on Thursday July 12, 2012 @12:56AM (#4233079)
I would wager that it is because when creating named variables, people tend to start with the low integers, like var1, var2, etc... And when using constants, they will often use maximums up to a threshold, like 999.99. So the middle range (5-8) is rarely used.