Semicolon vs Apostrophe Frequency in Computer Languages
Here is a table of their frequency.
lang | semicolon ; | apostrophe ' |
---|---|---|
Java | 8.0% | 0.5% |
C | 6.9% | 0.8% |
C++ | 3.5% | 0.2% |
Python | 0.2% | 10.6% |
Ruby | 0.3% | 4.4% |
Bash | 1.1% | 6.9% |
PHP | 5.1% | 9.5% |
Perl | 4.9% | 6.1% |
JavaScript | 5.2% | 6.8% |
If you code {C, C++, Java}, then semicolon is far more frequent.
If you code in {Python, Ruby, Bash}, apostrophe is far more frequent.
If you code in {PHP, Perl, JavaScript}, apostrophe is still more frequent.
And in English, the semicolon is almost never used, apostrophe is used often. (e.g. โit'sโ, โthat'sโ, 'quote', โฆ.)
See also: Arrow Keys: vim HJKL vs Inverted T
Keyboard Layout Design ๐
- Ergonomic keyboard Layouts
- Thumb Keyboard Layouts
- Most Efficient Layout?
- QWERTY Layout
- Dvorak Layout
- Maltron vs Dvorak
- Colemak Layout (2005)
- Workman Layout (2010)