If dark mode isn't your cup of tea, you might try just decreasing the contrast of your light background or lowering the brightness on your monitor to get the same benefit. But really, your eyes are yours. If your setup works and doesn't seem to be causing you eye strain? Use that! No problem at all.
Ask HN: Can't focus when writing code in dark mode
31–40 of 57 posts
Re: Ask HN: Can't focus when writing code in dark mode
#32Re: Ask HN: Can't focus when writing code in dark mode
#33If any of you are anywhere near 40 and feeling eye strain; you might be starting to suffer from presbyopia as i and most do at that age, getting a larger monitor and placing it slightly further away helps a lot more than any theme changes.
Re: Ask HN: Can't focus when writing code in dark mode
#34Re: Ask HN: Can't focus when writing code in dark mode
#35The more light that hits your eyes, the more your iris contracts. The smaller hole makes for a clearer image (think of a pinhole camera). People who like dark mode have good vision at screen distance. For some others, they need to strain their eyes more to focus at that distance. For me, the best is to have dark text on a light enough background, enough screen brightness overall, and a well lit room (natural light is…
Dark mode allows your iris to expand, which makes natural optical focus harder to achieve.
With more light, the iris contracts (small pupils) and the light that comes though it is naturally in focus on your retina without muscular help.
In a dark room, with the screen is at a short distance from you, your eye muscles have to squeeze your cornea into the right shape to put the image into focus on your retina.
And the older you get, the more inflexible your retina becomes, and your eye muscles are trying to squeeze a stone.
In either case, reading glasses can help if they are properly adjusted to the distance from your eyes to your screen. the amount of squeezing on the cornea is eliminated (or minimized)
If you are using something closer, like an ipad or phone, you might need higher power reading glasses.
I use +0.75 for my computer screen and +1.25 for something held closer like an ipad.
Oh to be young again! When I was a kid I could focus at infinity AND focus on my fingerprint when my finger was held at the end of my nose.
Re: Ask HN: Can't focus when writing code in dark mode
#36Dark mode doesn’t soothe the eyes at all. Just look away after using editor in darkmode and you have these bright patches on your retina. With normal dark onlight background, I never notice this.
Just a matter of not setting your monitor brightness to stupidlevels, for example on an iMac 50 to 60% brightness is plenty. On my iPad i hardly ever use 100% brightness.
I do like my terminal in classic dark mode, so maybe i am contradicting,myself? But it’s not the same: i don’t stare at the terminal continuously, idon’t edit in the terminal (eg. vim, i always use gvim).
Re: Ask HN: Can't focus when writing code in dark mode
#37Re: Ask HN: Can't focus when writing code in dark mode
#38Dark modes are great, until someone decides to use dark color fonts on dark backgrounds (which constitutes up to 99.9% but not all of the themes)
Re: Ask HN: Can't focus when writing code in dark mode
#39Dark vs Light mode seems to be the next Vim vs Emacs religious war. I'm on the Dark side. I've not only got all my IDEs in dark mode, all my browser apps use stylus to darken things if the app doesn't already have it, and my MacOS is set to be permanently dark. And naturally my terminal window as well, and my mobile apps on all devices. I simply find the strain on my eyes is a lot less. Particularly at night if I fee…
Re: Ask HN: Can't focus when writing code in dark mode
#40edit: and I don't know about other folks, but a big part of the decision for me is tied up in nostalgia for an age I never lived in, the whole like, "hacker aesthetic" thing.