Most Pressed Keys and Programming Syntaxes
mahdiyusuf.com
Most Pressed Keys and Programming Syntaxes
1–10 of 75 posts
Re: Most Pressed Keys and Programming Syntaxes
#2For most other languages the focus seems to be mainly on letters (typing out keywords/identifiers), so in that sense there is little evidence that one language would be easier to write than another.
Additionally, I imagine that some of the code is auto-completed by an IDE, which this analysis fails to account for.
Re: Most Pressed Keys and Programming Syntaxes
#3Re: Most Pressed Keys and Programming Syntaxes
#4I admit, the Lisp one at the end made me laugh. For most other languages the focus seems to be mainly on letters (typing out keywords/identifiers), so in that sense there is little evidence that one language would be easier to write than another. Additionally, I imagine that some of the code is auto-completed by an IDE, which this analysis fails to account for.
Re: Most Pressed Keys and Programming Syntaxes
#5I admit, the Lisp one at the end made me laugh. For most other languages the focus seems to be mainly on letters (typing out keywords/identifiers), so in that sense there is little evidence that one language would be easier to write than another. Additionally, I imagine that some of the code is auto-completed by an IDE, which this analysis fails to account for.
One question is why the Lisp code doesn't use the letter E as much as every language? Is that just due to normalizing of parentheses?
Re: Most Pressed Keys and Programming Syntaxes
#6Re: Most Pressed Keys and Programming Syntaxes
#7Why is E the most common across multiple languages (except Lisp (which I assume is due to the parentheses))? I assume it's usage is higher because it's a vowel, but none of the other vowels are nearly that high.
Re: Most Pressed Keys and Programming Syntaxes
#8I admit, the Lisp one at the end made me laugh. For most other languages the focus seems to be mainly on letters (typing out keywords/identifiers), so in that sense there is little evidence that one language would be easier to write than another. Additionally, I imagine that some of the code is auto-completed by an IDE, which this analysis fails to account for.
Re: Most Pressed Keys and Programming Syntaxes
#9Why is E the most common across multiple languages (except Lisp (which I assume is due to the parentheses))? I assume it's usage is higher because it's a vowel, but none of the other vowels are nearly that high.
However, it is in most of my variable names. Given that it's the most common letter in English, that makes sense.
There's the famous phrase "ETAOIN SHRDLU", dating back to printing press days, of the approximate order of the most common letters in English.
Not to be confused with the early AI program "SHRDLU"". :-)
Re: Most Pressed Keys and Programming Syntaxes
#10Earlier quoted context omitted.
One question is why the Lisp code doesn't use the letter E as much as every language? Is that just due to normalizing of parentheses?
It probably gets used about the same amount as the other languages, it's just that the parentheses get used an insane amount and outweigh all the other characters.