|
|
|
|
|
by zxoq
5135 days ago
|
|
None of the answers were about the questions I had about how to program when you're blind. While the tools they use are interesting. I'm more concerned with how you would browse the code. 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.