by zxoq · 14y ago · 0 comments
Say you wanted to find a method, how do you scroll in a large file to locate it? I guess deft use of find & go to definition helps out here.
How do you locate a line of code in a large function? Do you have to listen for the screen reader to read the contents of an entire screen's worth of code? Or do you rely on previous knowledge of the code and remember where it was?
How do you deal with debugging / fixing errors. I imagine the screen reader trying to parse the output of a template error being a nightmare.
This does influence my personal coding style - I always have the entry point at the top, which makes use of meaningful named methods - so it looks like the table of contents of a book. Next come the second level methods - and so forth, until the small auxiliary methods are way at the bottom. This lets me read it top-to-bottom, like a story. Much of this is just good coding practice - but, for example, I find it really frustrating to read code where functions must be defined before they are used - this results in details first, outline last - which makes it hard to build up that mental model (remember, I'm listening to the code line by line - no spinning the mousewheel).
Finally, I'm going to use this comment to express my dislike for underlines (yes, I'm looking at you, Ruby). Every underline adds three syllables to my audio stream - whereas screen readers read cammalCaseCode as separate words.
Feel to ping me @SaqibS on Twitter.
While I don't know the name of the program of he used, my vague recollection is that it read aloud the contents of whatever line he had the cursor on, a good deal faster than a human would speak it (I actually found the text to be read too quickly for me to follow by listening - I needed to read it myself).
I actually found this article about him on the Internet:
(Edit: I see below there are Braille editors, which I imagine mirror line editors! Expensive though.)
And no, they do not really compare to a 20-character LCD display. Reason is that blind user have to rescan the line with their hands whenever something changes, and that takes longer than visually scanning it. Effectively, blind users only 'see' two or three characters simultaneously.