Another blind developer here with his two pens. I like python because it has no braces. Sometimes the screen reader does not read them or if it does, it takes time to process the info and you still could be confused about the level of nesting. That's why in university I reformated all of my lisp code to follow the indentation rules of python as it helped me keep track. Generally, if the language has no too much stran…
Ask HN: How should a programming language accommodate disabled programmers?
91–100 of 122 posts
Re: Ask HN: How should a programming language accommodate disabled programmers?
#92Earlier quoted context omitted.
I love Lisp but every experienced lisper will tell you they don't see the parentheses, they look directly at the AST. Seeing the AST is, for me, highly visual (proper indentation is a must) and I wonder how a blind programmer could see that.
Blind people still have spatial reasoning.
(I suppose it would not be impossible for a programming language to have 3d layout projected onto the 2d screen, but I'm not aware of any mainstream languages that do this. Significant whitespace is fairly common of course and nonsignificant indentation is more common still)
Re: Ask HN: How should a programming language accommodate disabled programmers?
#93Lisp: - Avoids the use of gratuituous special characters: (a b c) - use-dashes-in-symbol-names-instead-of-underline-so-its-easier-to-type (you can still use underlines or most any special character, but we like to keep it simple and easy). - has a simple prefix syntax, that makes it easier to read and understand complex expressions: (loop (print (read (eval))) So no risk of confusing special characters or syntax: the…
Well it seems that OP needn’t bother as this problem is already solved. You wrote (loop (print (eval (read)))). How does that go with a screen reader? Like: Bracket loop bracket print bracket eval bracket read bracket bracket bracket bracket? The key thing I think is balancing and shifting parens. (loop (print (eval)) (read)) Is quite hard to sound different from (loop (print (eval (read)))) And more crucially what a…
It would say "left paren" and "right paren." It's not terribly hard to keep a stack in your head of how many close parens you're expecting in some context. Manually managing brackets in long or deeply nested forms (in any language) is a pain whether you can see or not. As you said, pseudo-structural editing is a big advantage.
> (I think writing these on a single line makes them written more like they might be spoken)
Screen readers can announce indentation levels.
Re: Ask HN: How should a programming language accommodate disabled programmers?
#94Re: Ask HN: How should a programming language accommodate disabled programmers?
#95Obviously, inherent to programming is diving deep into chained function calls and managing all those levels in abstraction in one's mind. However, for someone with a limited working memory for whatever reason--adhd, depression, chronic pain, anxiety, headaches and more--having this minimized as much as possible would be a lifesaver.
Re: Ask HN: How should a programming language accommodate disabled programmers?
#96I've seen some programmers code using voice. This is really handy for people without functiong hands or fingers. They tend to use voice recognition software like Dragon and various plugins. I'd say from a programming language point of view, having keywords that are short (single word would be ideal) and phonetically distinct is really important. One python programmer I watched on Youtube made his own vocabulary of st…
Re: Ask HN: How should a programming language accommodate disabled programmers?
#97Re: Ask HN: How should a programming language accommodate disabled programmers?
#98Earlier quoted context omitted.
Blind people still have spatial reasoning.
They do, but their interface to the computer does not. Screen readers are inherently linear while a screen show two dimensions at once. Indentation is the primary way this happens in practice. (I suppose it would not be impossible for a programming language to have 3d layout projected onto the 2d screen, but I'm not aware of any mainstream languages that do this. Significant whitespace is fairly common of course and…
Re: Ask HN: How should a programming language accommodate disabled programmers?
#99I can't really think of anything that would greatly enhance my current Linux/tmux/emacs setup.
Re: Ask HN: How should a programming language accommodate disabled programmers?
#100Lisp: - Avoids the use of gratuituous special characters: (a b c) - use-dashes-in-symbol-names-instead-of-underline-so-its-easier-to-type (you can still use underlines or most any special character, but we like to keep it simple and easy). - has a simple prefix syntax, that makes it easier to read and understand complex expressions: (loop (print (read (eval))) So no risk of confusing special characters or syntax: the…
I love Lisp but every experienced lisper will tell you they don't see the parentheses, they look directly at the AST. Seeing the AST is, for me, highly visual (proper indentation is a must) and I wonder how a blind programmer could see that.