6 ms·
We should organise a study of our own: does syntax highlighting help or hinder and does the answer change based on your level of ADHD traits. Could be quite in
by extasia 3y ago
We should organise a study of our own: does syntax highlighting help or hinder and does the answer change based on your level of ADHD traits.
Could be quite interesting!
- AnyTimeTraveler 3y agoI have been diagnosed with ADHD and got an especially bad score for working memory. I find myself tired out really quickly by a lack of syntax highlighting. With syntax highlighting, I feel like I am not really reading the code anymore, but instead just registering the patterns and parsing the color tokens. I think the most important aspect for me, is that I don't spend time reading where a token starts and ends. Ex.: If I wanna check the function name, I just have to read the only yellow thing in around this area. I can register the tokens on a whole page in seconds, if the code isn't too dense. I just tried the same with syntax highlighting disabled and would say that I took about twice as long to parse the entire page. (I used a different, but similar file from a microcontroller HAL)
- giraffe_lady 3y agoIt's not adhd specific but https://arxiv.org/abs/2008.06030 https://arxiv.org/abs/2008.06030 After reading this I implemented a code theme based primarily around typographic variation like weight rather than color. It uses only two colors (black and deep purple) in two weights and one italic each. I have pretty severe adhd and it's hard to judge but after using it for a few months I think this is better for me. Previously I had been using solarized light for nearly a decade for probably similar reasons. Nano emacs was created by the author of that paper and its default themes are based on it, if you want to try it without committing to hand-rolling a theme. Personally I found that one too "light" (typographically, not color) but I also have relatively poor vision and like a large and heavy font. https://github.com/rougier/nano-emacs https://github.com/rougier/nano-emacs
- katabasis 3y agoI also immediately thought of Nano Emacs when I saw this article. There is a short talk (6min) from EmacsConf 2021 where the creator of Nano Emacs talks about his reasons for designing a simpler interface, I found it really interesting: https://emacsconf.org/2021/talks/design/ https://emacsconf.org/2021/talks/design/
- giraffe_lady 3y agoYeah it was kind of a mind blower to me. I'm not in a big hurry to settle an opinion but I have a feeling these are ideas that I'll be exploring and influenced by for the rest of my career.
- d0mine 3y agoNote: there is an effect that less eligible font makes for deeper understanding (it makes the text harder to read thus your conscious has the time to process before your fast intuitive system I jumps to conclusions). While skimming code (i.e., most of the time), syntax highlighting is useful. But it may be also useful to turn it off occasionally, to read some parts more thoroughly.