News for hackers. Stuff that matters.
Re:Effect of Perceptual Load on Performance Within IDE in Pe... by extasia on Friday July 14, 2023 @06:23AM (#36721926)
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!

Re:Effect of Perceptual Load on Performance Within IDE in Pe... by AnyTimeTraveler on Friday July 14, 2023 @06:52AM (#36722118)
I 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)

Re:Effect of Perceptual Load on Performance Within IDE in Pe... by giraffe_lady on Friday July 14, 2023 @11:09AM (#36725088)
It's not adhd specific but 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

Re:Effect of Perceptual Load on Performance Within IDE in Pe... by katabasis on Friday July 14, 2023 @11:22AM (#36725291)
I 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/

Re:Effect of Perceptual Load on Performance Within IDE in Pe... by giraffe_lady on Friday July 14, 2023 @11:45AM (#36725637)
Yeah 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.
Re:Effect of Perceptual Load on Performance Within IDE in Pe... by d0mine on Friday July 14, 2023 @03:33PM (#36728839)
Note: 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.