4 ms·
'Go' is 100% longer than C.
by kungfooey 17y ago
'Go' is 100% longer than C.
- nuclear_eclipse 17y agoIt's also 33% quicker to type than C++
- metachris 17y agoprobably only about 20% since you need only two keys for both :P
- deleted 17y ago[deleted]
- stcredzero 17y agoA more careful analysis: "C++" requires the use of the shift key for all characters, and extension below the home row and to the top row. On the other hand, the characters of "Go" are on the home row and the row above. The shift key is only required for the 1st character. So the actions for typing "C++" are going to be [shift] [C] [+] [+]. For typing "Go" [shift] [G] [o]. The "+" keys are repeated, which makes the 2nd action faster. However, the spread between C and + is much wider than between G and O. I would guess that it's probably 33% more.
- jodrellblank 17y agoYou need three keys or two keys and a long hand movement to type C++, but you only need two keys for 'go' - and the keys for go are alternate hands and strong fingers, but even the nearest + symbol requires a weak finger or a contortion. Also, go is typed as a typical word more often than ++ is, so it's more habitual and familiar and automatic. I suggest it's much faster.
- NikkiA 17y agoC is also, and was in 1970, a terrible name for a language. In fairness to K&R though, they weren't able to predict that search engines would exist and single-letter names would be a pain in the ass. It was still a terrible name though.
- gcheong 17y agoWere they trying to save memory?