Live data from Hacker News

Ask HN: How should a programming language accommodate disabled programmers?

news.ycombinator.com

31–40 of 122 posts

Re: Ask HN: How should a programming language accommodate disabled programmers?

#31
post #8

Blind people already do programming. I know a blind guy who can code really fast, much faster than my colleagues, no idea how though. Shouldn't you be researching how they code now and then work from there? I actually feel like current way of coding using text works very well for blind people.

This is a good point, but note blindness is just one of many disabilities.

Re: Ask HN: How should a programming language accommodate disabled programmers?

#32
My struggle is typing. I use an onscreen keyboard (https://www.blakewatson.com/journal/writing-and-coding-with-...), which I have heavily customized for web development.

I would appreciate terseness. For example, I love how in JS, I can do this:

``` var cat = whichCat(); var catPosts = posts.filter(post => post.cat === cat); ```

Whereas in PHP, I have to do this:

``` $cat = whichCat(); $catPosts = array_filter($posts, function($post) use ($cat) { return $post->cat === $cat; }); ```

So much extra typing.

DISCLAIMER: didn’t test this code so chance of typo is 99%.

Re: Ask HN: How should a programming language accommodate disabled programmers?

#33

My struggle is typing. I use an onscreen keyboard ( https://www.blakewatson.com/journal/writing-and-coding-with-... ), which I have heavily customized for web development. I would appreciate terseness. For example, I love how in JS, I can do this: ``` var cat = whichCat(); var catPosts = posts.filter(post => post.cat === cat); ``` Whereas in PHP, I have to do this: ``` $cat = whichCat(); $catPosts = array_filter($pos…

It didn’t capture my line breaks but hopefully you get it.

Re: Ask HN: How should a programming language accommodate disabled programmers?

#34
I'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 strange sounds that he trained his software to recognise and translate to real keywords.

Re: Ask HN: How should a programming language accommodate disabled programmers?

#35

My struggle is typing. I use an onscreen keyboard ( https://www.blakewatson.com/journal/writing-and-coding-with-... ), which I have heavily customized for web development. I would appreciate terseness. For example, I love how in JS, I can do this: ``` var cat = whichCat(); var catPosts = posts.filter(post => post.cat === cat); ``` Whereas in PHP, I have to do this: ``` $cat = whichCat(); $catPosts = array_filter($pos…

Out of curiosity, how long did it take you to type this comment?

Re: Ask HN: How should a programming language accommodate disabled programmers?

#36
post #3

> Making whitespace-sensitive syntax, like in Python & Haskell, optional syntactic sugar for explicit brackets & separators. Interesting question. A few years ago, I worked with a blind mathematician. I was an undergraduate T.A. and he was the main T.A. of the course. He used the screen reader a lot. In particular, he has the list of exercise in LaTeX. We read aloud the grades of the students and he wrote them in the…

I wonder if it would be helpful to describe the indentation level you are on: e.g: def method_here(value): # Indentation level 0 x = 10 # Level 1 y = 5 # Level 1 if x == value # Level 1 print 'x!' # Level 2 elif y == value # Level 1 print 'y!' # Level 2 You could maybe even throw in a block number so it's clearer.

Check out how this actually works:

https://github.com/derekriemer/nvda-indentone

Re: Ask HN: How should a programming language accommodate disabled programmers?

#37
post #12

>Making whitespace-sensitive syntax, like in Python & Haskell, optional syntactic sugar for explicit brackets & separators. That shouldn't matter with an IDE or plugin. If static analysis can identify the blocks -- and it has to! -- the screen reader can just read it as if it had your preferred block notation rather than noting the whitespace.

You also need to read coding books, documentation examples and webpages, so having to use an IDE is not the best solution.

Re: Ask HN: How should a programming language accommodate disabled programmers?

#38
post #12

>Making whitespace-sensitive syntax, like in Python & Haskell, optional syntactic sugar for explicit brackets & separators. That shouldn't matter with an IDE or plugin. If static analysis can identify the blocks -- and it has to! -- the screen reader can just read it as if it had your preferred block notation rather than noting the whitespace.

You also need to read coding books, documentation examples and webpages, so having to use an IDE is not the best solution.

Seems like the real problem is the lack of interoperability between a special coding parser and arbitrary snippets of online code.

Re: Ask HN: How should a programming language accommodate disabled programmers?

#39

I'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…

This might be the programmer in question. Pretty impressive.

https://www.youtube.com/watch?v=8SkdfdXWYaI

Re: Ask HN: How should a programming language accommodate disabled programmers?

#40

My struggle is typing. I use an onscreen keyboard ( https://www.blakewatson.com/journal/writing-and-coding-with-... ), which I have heavily customized for web development. I would appreciate terseness. For example, I love how in JS, I can do this: ``` var cat = whichCat(); var catPosts = posts.filter(post => post.cat === cat); ``` Whereas in PHP, I have to do this: ``` $cat = whichCat(); $catPosts = array_filter($pos…

Have you had any luck with programming by voice?

https://github.com/melling/ErgonomicNotes/blob/master/progra...

Post reply on HN