a 0.772163
b 1.2679
c 1.78209
d 1.1195
e 0.881398
f 1.47252
g 0.924242
h 0.358954
i 1.06756
j 0.835313
k 1.41458
l 0.981729
m 1.08955
n 0.9156
o 0.73849
p 1.74468
q 4.2497
r 1.21577
s 1.05023
t 1.03627
u 1.2967
v 1.77662
w 0.396003
x 13.7292
y 0.47566
z 3.78748
The numbers are (relative frequency in C) / (relative frequency in English). So "b" is slightly more common in C than English, but "w" is a lot more common in English than C.The raw counts for symbol characters:
_ 22890057
, 10895692
) 10749798
( 10745839
* 9211904
; 8187969
- 6628768
= 5878296
> 4428291
/ 3468260
. 3011078
{ 2212412
} 2211783
" 2120264
& 1647188
: 1032587
+ 962554
# 909859
[ 889538
] 888722
< 839910
| 643903
% 583092
! 561462
\ 540456
' 454201
@ 131199
? 112488
~ 84629
^ 19064
$ 17922
` 7272
[space] 74199965Finder reports 630,942,867 bytes for the whole directory. Assuming most files will be plain ASCII, that should give a good approximation for the total number of characters.
* 18% of all characters are symbols, 12% are spaces and 70% are alphabetic
* 20% of all non-space characters are symbols and 80% are alphabetic.
* US kb layout users need to use shift for 64% of symbols
* Finnish/Swedish kb layout users need to use shift for 73% of symbols and AltGr for 7% of symbols.
* Fi/Swe layout users thus need to use 25% more modifer keys for symbols.
Conclusion: Fi/Swe layout sucks.
edit: https://gist.github.com/1205728 python script used to get these numbers (percentages calculated with OOo Calc).
if (c == '{')
and not need to test for the matching one. > you're looking at developer preferences for spacing
> and operators
Not really. For example, in languages that use $ (e.g. Perl, PHP) to denote a variable, that's not developer preference. I'm actually surprised that there aren't more operators being used in Ruby. Though I'm not a Ruby programmer, it does not look as devoid of punctuation characters as the heatmap suggests.Based on alextgordons numbers (see http://news.ycombinator.com/item?id=2974381 )