News for hackers. Stuff that matters.
Re:Typing Practice for Programmers by edanm on Wednesday August 22, 2012 @05:05PM (#4419570)
This. Is. AWESOME. Let me tell you what this is useful for by telling you my story:

I'm a pretty fast typist (80-100WPM on TypeRacer, usually) and I really never put much thought into my typing, since it was good enough. But I recently started paying attention to the kinds of mistake I make on Typeracer, and realized that I have certain combinations of keys which I don't make using the "home row" of the keyboard, but rather, move my hands to make. Every time I hit one of these, I have a 50/50 chance of not getting back to the home row correctly, meaning I have a 50/50 chance of throwing off my typing.

And I am a heavy VIM user, by the way, which means I am very used to doing everything from the home row, including every navigation you can think of. I even have AutoHotKey scripts to give me vim-style navigation everywhere in windows, so I never have to move my hands.

Now with this program, I finished running an example and noticed 2 shocking things:

1. There are a lot of keys which I'm not used to typing from the homerow, which happen to show up a lot in regular Python code. For example, periods (.). And underscores. I was used to shifting my hand to type these characters. I don't notice this during every day work, since I'm actually programming, but I did notice this while playing a program specifically designed for typing.

2. At the end of the program, it gives you statistics, and I found out that I was only about 48% effective, meaning 52% of the keystrokes I made were accidents that had to be backspaced out. This is a lot. Part of it is "first time with this program" bias, but it still means I have a long way to go.

Anyway, I recommend running through this program, it will probably teach you a lot.

P.S. Just one bit of constructive criticism: the way the program presents mis-types is a little annoying, and hard to follow. I recommend doing the same as TypeRacer, that is, have the "mistaken" keystrokes be visible somewhere, so the typist is very clear on how many keys he needs to backspace out. This is much closer to how people type in the real world.

Re:Typing Practice for Programmers by moonboots on Wednesday August 22, 2012 @05:11PM (#4419603)
Thanks, I'm glad you found the stats useful. In my initial version, I wasn't requiring the user to correct errors. I was personally getting errors rates around 3~5% , which appear good but seemed too low for the amount of errors I feel I make. Adding the need to backspace and correct keys revealed the true cost of mistyping a key, namely the wasted keys typed before correcting and all the backspaces.

Thanks for pointing out typeracer. I will take a look at it and try to incorporate its error handling.

Re:Typing Practice for Programmers by notJim on Wednesday August 22, 2012 @05:38PM (#4419723)
Hey, I agree this is awesome. I have noticed as I've optimized my workflow that I actually make a huge number of typing errors when I'm programming. Other typing programs don't test the whole set of symbols we use, so they're not as useful (and I type English considerably faster than code.)

One thing I would say is that it would be nice if it showed stats while I was typing, instead of just at the end.

Re:Typing Practice for Programmers by edanm on Wednesday August 22, 2012 @05:49PM (#4419787)
Just in case I wasn't clear, I absolutely agree that you should force users to correct errors. It's just that the interface right now makes it harder to see how to correct the error, since you don't get visual feedback on the "wrong" characters that you've typed.
Re:Typing Practice for Programmers by samspot on Wednesday August 22, 2012 @05:44PM (#4419760)
I was taught in typing class that its better to skip errors and then come back and correct them when you are done. Not that I follow that advice especially often, but I wonder if it would be more helpful to do that. I didn't like during the demo that I was forced to correct the problem before continuing.
Re:Typing Practice for Programmers by psykotic on Thursday August 23, 2012 @06:30AM (#4421690)
Take it from someone who averages 140 WPM and peaks at 160-170 WPM. Don't skip errors and return to them later. Do delete whole words (alt-backspace) and re-type them from the beginning. When you get really fast, almost all typing errors are transposition errors. By the time they register you are already several characters, even words, ahead. Trying to correct them character by character will throw you off.
Re:Typing Practice for Programmers by gcr on Sunday August 26, 2012 @12:12AM (#4434300)
If you use emacs, what do you think about `flyspell-auto-correct-previous-word`? It's like autocorrect, but it only happens when you invoke it and it always happens on the last misspelled word rather than the word under point.
Re:Typing Practice for Programmers by psykotic on Monday August 27, 2012 @05:53PM (#4441110)
Never tried it but that sounds like it could work great.
Re:Typing Practice for Programmers by plorkyeran on Wednesday August 22, 2012 @07:58PM (#4420215)
I can't really imagine that working very well when coding. It'd cause huge issues with autocomplete and autoindent.
Re:Typing Practice for Programmers by pacmon on Thursday August 23, 2012 @01:16AM (#4421026)
I agree. I believe the most typing classes are focused on the word processing end of things rather than programming. While waiting to correct errors afterwards can be faster for regular documents, I would absolutely never do that when programming.
Re:Typing Practice for Programmers by edanm on Thursday August 23, 2012 @01:29AM (#4421058)
Actually, I doubt it's even better for regular documents.

In the writing discipline, people will often tell you to write a first draft without correcting errors, then go back and error-correct on the second draft. But that's not about typing errors, but rather grammatic/narrative errors in your writing.

Re:Typing Practice for Programmers by warp on Thursday August 23, 2012 @09:01AM (#4422095)
I had the same problem with not getting enough feedback on the errors I made. For example, I mistyped ")" a few times. But to correct it I need to know whether I hit the key to the left or to the right of ")" so I can move my finger accordingly. (I often type US-Dvorak on a spanish layout keyboard, so looking at the physical keys on the keyboard is pointless).
Re:Typing Practice for Programmers by pc86 on Thursday August 23, 2012 @09:27AM (#4422193)
FYI I did the Symfony demo, then signed in with Google and got a 404 error. It did save my progress, but I had to re-authorize before I could get back to the list of languages.

Fantastic product, though. I see myself using this a lot. Any chance of a C# version coming along?

Re:Typing Practice for Programmers by kps on Wednesday August 22, 2012 @09:16PM (#4420439)
Supporting KILL and especially WERASE would be nice; I usually use one of those rather when I've made a string of errors, rather than watching and counting backspaces. And I agree with previous comments that it's hard to follow just how many backspaces are needed.
Re:Typing Practice for Programmers by ibotty on Thursday August 23, 2012 @05:16AM (#4421529)
that opens a whole can of worms.

i use vim: so please support all vim movements. and the surround plugin. and while at it: my custom templating plugin as well :D.

Re:Typing Practice for Programmers by samspot on Wednesday August 22, 2012 @05:46PM (#4419771)
I learned that I NEVER type '}'
Re:Typing Practice for Programmers by mark_story on Wednesday August 22, 2012 @08:34PM (#4420318)
What? how? Its in almost every programming language that I can think of.
Re:Typing Practice for Programmers by flatline on Wednesday August 22, 2012 @08:42PM (#4420348)
Many IDEs have an option to auto-insert it after typing a "{". This is on by default in Eclipse.
Re:Typing Practice for Programmers by samspot on Wednesday August 22, 2012 @10:39PM (#4420630)
Exactly, and I'm a java programmer. For the record Sublime Text also inserts these for me. When I had to type '}' in the training program I actually had to look down at my keyboard!
Re:Typing Practice for Programmers by hkmurakami on Wednesday August 22, 2012 @09:04PM (#4420408)
Last night I learned that Microsoft Word 2010 will auto replace a ")" with a "}" if I type { stuff ).

Does anyone know when this feature was implemented in Word?

Re:Typing Practice for Programmers by mkopinsky on Wednesday August 22, 2012 @10:26PM (#4420589)
What would the possible use for such a feature be? When in the world are non-programmers ever typing squiggly braces?
Re:Typing Practice for Programmers by ZoFreX on Thursday August 23, 2012 @04:33AM (#4421441)
They're completely valid brackets to use in writing. You don't tend to see them much but using different forms of brackets can add clarity to nested brackets (i.e. when you feel the urge to expand on your text in brackets [which I frequently do {and according to Wikipedia, others do too}])
Re:Typing Practice for Programmers by ebrenes on Thursday August 30, 2012 @06:23PM (#4457193)
Thanks so much for this bit of knowledge, I was not aware this was the grammatically accepted means of doing this. I always tried to reformulate sentences to avoid nested "expressions" due to the confusing nesting of parenthesis.
Re:Typing Practice for Programmers by samspot on Wednesday August 22, 2012 @10:38PM (#4420627)
Seems sensible enough. The editor just assumes that you want your thingies to match.
Re:Typing Practice for Programmers by hkmurakami on Wednesday August 22, 2012 @10:42PM (#4420637)
In my case, I was writing documentation for our product :P

Since it's being written on purpose as a 'product spec' like doc, company standards dictate that it be written in Word (unfortunately).

Re:Typing Practice for Programmers by mkopinsky on Thursday August 23, 2012 @12:08AM (#4420837)
Yeah, that makes sense. I could foresee some cases where I was writing something documentation-y, such that it made sense to do in Word, but aimed at developers, such that I'd want to include code samples or the like.
Re:Typing Practice for Programmers by yxhuvud on Thursday August 23, 2012 @10:59AM (#4422716)
Must be fun for math people typing intervals that are semi-open.
Re:Typing Practice for Programmers by samirahmed on Thursday August 23, 2012 @12:47AM (#4420943)
can you share your windows autohotkeys?
Re:Typing Practice for Programmers by achal on Sunday August 26, 2012 @10:08PM (#4437090)
Not OP, but I use this: https://github.com/achalddave/Vimdows-Navigation , which I updated from someone's post here http://www.autohotkey.com/community/viewtopic.php?t=44762

Someone else has also recommended https://github.com/MarcWeber/autohotkey_viper , which seems to be more feature filled than the others, but I haven't tried it out.