Live data from Hacker News

Ask HN: Programming and dyslexia

news.ycombinator.com

1–10 of 37 posts

Ask HN: Programming and dyslexia

#1
Any dyslectic programmers here? Is it an issue for you in your daily programming? Did you find learning techniques that helped when you were still teaching yourself?

Fonts, colors, screen readers?

I am currently teaching a teenager, it is obvious he understands principles fast and has great memory retention, but syntax is a bit of a problem. We obviously use helpful editors and IDEs in this regard, but it is still an issue.

Re: Ask HN: Programming and dyslexia

#2
I use Tab completion alot. I do mostly mathematical programming, I can keep track of horrible extremely short namespaces easily and then use find and replace feature to make everything nice. Even though I have no real concept for it, I just do it to make the code more similar to my colleagues.

Every training I had to overcome my dyslexia was absolutely useless. Spellcheck is very important. Fonts and colors don't matter at all. Just seeing my own work after I forgot about it, actually makes me see my mistakes. This can take years, my memory is insane for my own work.

You can't see mistakes, since you basically have an internal autocompletion that doesn't allow you to see mistakes or missing words. Checking the code of my coworkers is surprisingly different, I can find their mistakes quite easily.

It is much more important to have goal and motivation. Don't worry about those little details, like floating letters and missing words.

Re: Ask HN: Programming and dyslexia

#3
I am dyslectic and have been programming for over 20 years, largely programming itself doesn't seem to trigger for me, as I am creating, and I'm not working in sentences, but in smaller logical statements that doesn't often require the same processing as reading text does, I will admit that I can very easily screen up a variable name, and if I've read a variable name elsewhere and intend on referencing it, that can be tricky. But as the Scantis said, auto completion has been a boon, as it basically acts as a safe guard against these issue.

I think it might be helpful if you could say specifically what are they having issues with. what is triggering things and where.

As for fonts/colors/etc.. I always use mono spaced fonts, and ones that make clear distinctions between all characters (0/O) (I/l) etc...

I use dark themes but I don't think that helps with the issue, and is just a personal preference. I can't imagine using a screen reader and it not being horrible, code is far to many characters with specific meaning, for a reader to read them out would be minding numbing.

Re: Ask HN: Programming and dyslexia

#5
I am really bad with transposing numbers. I'll often even have trouble correctly reading a 2FA code.

I always have to triple check numbers, I often try grouping them in a few different ways, e.g. 327895 I would read as 32-78-95 and then again as 327-895 just to be sure I have not transposed any digits.

Other than this sort of discipline I have not found a solution.

Re: Ask HN: Programming and dyslexia

#6
A not tiny font size can help. Supposedly dark themes help, but I’ve never found this true myself. Honestly, I don’t think there’s any real accommodation needed here.

As others have mentioned, it’s all about motivation. The longest books I read as a kid were programming books - I got through them because I was motivated to learn. I’d recommend challenging him with puzzles - find something level appropriate such “print a pyramid with base size n” or “draw a maze that doesn’t loop back on itself” for advanced beginners.

Re: Ask HN: Programming and dyslexia

#7
Dyslexic programmer here! Here's some of my tips I use.

ALWAYS ALWAYS close your parenthesis/brackets/quotes as soon as you open them then go back to write what's in them. So, if I write: func(arg), the keystrokes for me are: f u n c ( ) Color syntax highlighting is a must! It lets you know your keywords are correct.

Copy-and-paste variable names. Write them once and then get fast at copying them.

And then some preferences I like, not sure if they're related:

I prefer coding styles with lots of vertical white-space. I also rotate my monitors to portrait.

Also, I've always used a dark mode theme. I thought that was a nostalgia for the old DOS days, but seeing other people recommend them, maybe it's a thing?

Re: Ask HN: Programming and dyslexia

#9
I'm not sure if I'm dyslexic, but I do have a horrible time reading. The hardest thing is reading stuff I have written. I just get anxious, and find it tiring. I would often check in some very embarrassing typos.

The best trick I have found is having my work, and code read back to me using text to speech software.

Reading along as the computer speaks helps me to find spelling and grammar mistakes.

Re: Ask HN: Programming and dyslexia

#10

There is a couple of fonts aimed to help dyslexics. [0] https://github.com/antijingoist/opendyslexic

You might also try BeeLine Reader, [1] which can be helpful for reading, though isn't used with IDEs. Disclosure: I am the founder, and I'm also happy to give extended free trials to anyone from HN (contact info in profile).

1: http://www.beelinereader.com

Post reply on HN