Semicolon vs Apostrophe Frequency in Computer Languages
Here is a table of their frequency.
lang | semicolon ; | apostrophe '
(single quote) |
---|---|---|
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% |
see chart at Computer Languages Characters Frequency
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. (For example, βit'sβ, βthat'sβ, 'single quotes', β¦.)
Language Syntax
if you want to look at the syntax of languages, see:
Computer Languages Characters Frequency
- Complex Numbers in Java
- Python 3 Tutorial
- Ruby: Learn Ruby in 1 Hour
- PHP in 1 Hour
- Learn Perl in 1 Hour
- JavaScript Tutorial by Example
See also: Arrow Keys Arrangement Efficiency: vim HJKL vs IJKL
Keyboard Layout Design π
Keyboard Layouts and Efficiency
- QWERTY
Ergonomic keyboard Layouts
Thumb Keyboard Layouts- Most Efficient Layout?
- Maltron vs Dvorak
- Colemak vs Workman
- Typing Multi Layouts