Live data from Hacker News

Ask HN: Can't focus when writing code in dark mode

news.ycombinator.com

1–10 of 57 posts

Ask HN: Can't focus when writing code in dark mode

#1
Seeing fellow programmers left and right switching to dark mode and everyone seems very happy. I gave it a try a few times but it just doesn't work. I can't focus.

It is not the time that I need to get used to a different syntax highlighting scheme because I switch between editors all the time. I'm perfectly fine as long as the background is lighter than the foreground, so it has to do something with the dark mode itself.

Is it that I have to give it more time (so I can stop noticing that "something is wrong"), or simply it doesn't work for some people? And if so, what am I losing (reduced eye fatigue, better sleep...)?

Re: Ask HN: Can't focus when writing code in dark mode

#2
if it doesn't work for you; it doesn't work for you.

Your personal productivity story doesn't have to be like anyone elses. As you work, start paying attention to what conditions seem to work better for you.

Different brains and bodies are different, and programming as a mentally strenuous activity requires that you pay attention to your mental wellness.

Re: Ask HN: Can't focus when writing code in dark mode

#4
I wonder if this has to do with getting less blue light. After I started using flux I found myself getting exhausted and unable to focus after around 3-4pm especially in the winter. Bumping flux back to only after work made a huge, noticeable difference for me. Might be a similar effect with bright vs. dark screen.

Re: Ask HN: Can't focus when writing code in dark mode

#5
Dark mode appeals to some people and not others. Having things available only in dark mode would be just as bad as only in light mode. (Having things only available in system colors, and having that have many well tested color schemes would be most preferable, but since it's not 1995, I guess that's not going to happen)

If you want the least eye fatigue, you gotta go with yellow on blue, like Word Perfect of old. It's all about compromises.

Re: Ask HN: Can't focus when writing code in dark mode

#6
I’m a huge Light Mode guy. I use the morning color scheme in vim, and the light schemes in VS and VSCode.

I do run f.lux, static at 49k... but I have found that dark editor schemes make me feel claustrophobic (!).

Everyone’s different! It just might not work for people like you or I, and that’s okay. :)

Re: Ask HN: Can't focus when writing code in dark mode

#9
started using and learning linux from the console so there was always a nostalgic reason for me to have everything in solarized dark. the last 2 or so years my eye sight has dropped due to aging but also because of way too much time on a screen. I notice it especially during reading ebooks at night that a dark theme isn't doing me favors so switched to an e-paper like color and slightly reduced screen brightness for late night pdfs/ebooks reading. (redshift does nothing for me here). an epaper color is a lot easier on my eyes than dark mode. still use dark colors for terminals during my day work but am also considering changing this but maybe it's because my eyes aren't tired throughout the day as much as they're between 21:00 and 02:00 ...
Post reply on HN