r/AskProgramming • u/[deleted] • Jan 21 '20
How do you care for your eyes when programming?
I hope this topic belongs into this sub...
In critical weeks I have to spend ~8-12 hours programming, because of my job and my university projects and I experience exhaustion of my eyes after ~2 days. Therefore I do:
Turn IDEs into dark mode
Wear glasses that filter blue light
drink enough water
try to sleep enough
I know, its not very healthy to spend so much time programming, but sometimes you gotta what you have to.
I was wondering how experienced programmers deal with that? Any recommendations or experience?
7
u/myusernameisunique1 Jan 21 '20
There are exercises you can do while you are in front of your screen.
Your eyes are just controlled by muscles and muscles can be exercised. If you don't exercise those muscles you'll strain them.
https://www.artofliving.org/yoga/health-and-wellness/yoga-eyes
Just set a reminder every hour to stop and do them. I find the most effective for me are left-right-up-down for about a minute and then focus on your nose and then far away, repeat for about a minute too.
5
50
u/cyrusol Jan 21 '20
lower contrast and brightness of monitors
low but "well-distributed" lighting in the room, i.e. no bright monitor in a dark room
frequent pauses to look out the window (or from the balcony etc.) into the far distance
22
u/EarthGoddessDude Jan 21 '20
frequent pauses to look out the window (or from the balcony etc.) into the far distance
Amen friend. This needs to be shouted from the rooftops (or the balconies). Having yours eyes focus on far off objects, give your eye muscles a good stretch is very important. Not to mention the mental break you get from looking at clouds, trees, buildings, tiny little people going about their business.
8
u/dAnjou Jan 21 '20
Isn't this obsolete as it's included in all major OS? macOS has it, GNOME on Linux has it, KDE probably as well, and I'm pretty sure I've seen it on Windows as well.
9
7
u/T3chnopsycho Jan 21 '20
and I'm pretty sure I've seen it on Windows as well.
It does on Windows 10. "Nightlight".
3
u/balefrost Jan 21 '20
Lower monitor brightness makes sense to me, but my understanding is that high contrast is less fatiguing than low contrast. Not just as a monitor setting but also for your color scheme. If anything, higher contrast should make it easier to turn your brightness down even further.
5
u/pancakeQueue Jan 21 '20 edited Jan 21 '20
As long as I keep blinking and take occasional breaks my eyes are fine. Blinking is the number one thing you need to remember, it’s what you do less of looking at monitors and you need to do more of it when wearing contacts. I’m more worried about my back, then my eyes.
4
u/noratat Jan 21 '20 edited Jan 21 '20
Dark theme is only better for dim environments. In brightly lit environments, a good light theme like Solarized Light is better. Avoid pure black or pure white backgrounds where possible.
Keep brightness levels down close to ambient, and keep blue light filters on.
Don't make your text tiny. It's better to scroll a bit more than strain your eyes by making everything as small as possible. Get the largest monitor you can, and try not to sit too close to it.
Never work in total darkness.
1
u/RolaChee Jan 21 '20
I program for a hobby and my eyes are strained within seconds of looking at the screen nowadays. I am now practising using my peripheral vision to relax the strain (got that idea from my brother who is reading Mark Warren's blog). It helps me a lot - in the sense that eye strains are more bearable and I seem to recover more readily after doing computer work.
I figure this works because it forces the eyes to do some natural things other than staring at an illuminated 2D surface in close distance for a long time. Staring at flat surface in close distance forces the eyes muscles into a sustained "posture" so to speak, and it causes strain after a time (just like how a person gets shoulder strain after keeping that shoulder shrugged for a few hours, for example). The screen illumination probably does some weird thing to your eyes, like you're staring at a candle.
My message: strictly limit your screen time (advantage is it builds work efficiency and it preserves your eyesight for the long term); and "exercise" your eyes (even when you are away from the computer monitor).
2
Jan 21 '20
/u/myusernameisunique1 posted a cool website to do eye excercises, check that out. It is completely normal for us to stare at the screens endlessly, but youre right, kind of fucked up how we would feel doing similar to other parts of our body...
1
3
u/jamesbartondev Jan 21 '20
There are a lot of comments about brightness and contrast. The problem is that everyone is guessing what the right settings are, and you can make things worse. Spend a bit of money and invest in an x-rite or spyder calibration device. A properly calibrated screen that shows accurate colours and gradients does so much more for your eyes than hacking at the brightness and contrast levels.
2
u/YMK1234 Jan 21 '20
Two Three things:
Set the monitor brightness (and contrast) correctly. A lot of people have their monitors way too bright and then complain about eye strain ... no shit sherlock!
Have some background light and not sit in total darkness, the brightness contrast of even a semi-bright monitor against darkness just kills your eyes like nothing else.
Just do other things and take breaks here and there. Also helps with thinking.
1
u/jungthinkr Jan 21 '20
You can try to implement the Pomodoro technique https://en.m.wikipedia.org/wiki/Pomodoro_Technique
1
u/GuiiDo Jan 21 '20
Just stand up from time to time, get some drinks and look at stuff that is not a screen. That in combination with what you already do, warring glasses, IDE’s in dark mode etc. Works for me
1
u/developernexus Jan 21 '20
The contrast of light to dark (i.e. having an extremely bright monitor in a poorly lit room) can really speed up how quickly my eyes get tired. It's fairly easy to combat, though. If your desk is up against the wall, get a bright desk lamp (or two) and point it AT the wall. You can increase the lighting in the general room as well, but I noticed the 'behind the monitors' lighting to be the most helpful!
1
u/fullmight Jan 21 '20
Gaze into the blue beyond and embrace it in its full glory.
Also sometimes look out my window and stare at the mountains in the distance for a bit.
1
1
1
Jan 21 '20
All these suggestions are great, but I think in reality, most of us just up our glasses prescription every 2 years.
1
1
u/funbike Jan 22 '20 edited Jan 22 '20
What I do or have done. In order of importance
5-10 minute break every hour. 1/2 hour break at least every 3 hours. See also Pomodoro method.
Solarized theme or otherwise low contrast theme.
Get exercise.
Large fonts and/or large monitors.
Learn to accurately touch type (so you don't have to focus on text as much). Practice typing with your eyes closed.
If multiple monitors, have main one directly in front of you.
Monitor center level with tip of nose.
Moderately lit room with incandescent bulbs (if you can find any), or LEDs with warm light.
See an eye docker to make sure don't need glasses or change in prescription.
Write thorough unit tests. Weird one, I know, but I find debugging makes me strain my eyes more. If I write good tests, I spend less time debugging.
1
u/Berkyjay Jan 22 '20
Turn IDEs into dark mode
I do more than my IDE. I try to make everything I use have a dark mode. The caveat is that when I do get an app that doesn't have a dark mode, it stands out all the more on my screen.
1
Jan 22 '20
This really hasn't been a problem for me, and I'm basically staring at screens from breakfast to bed, for decades at this point. I make sure to keep them at least a foot and a half from my eyes, though. I did once have problems because the screen was too close, but figured the issue out quickly.
1
u/myplacedk Feb 16 '20
In critical weeks I have to spend ~8-12 hours programming, because of my job and my university projects and I experience exhaustion of my eyes after ~2 days.
I look at 3 computer screens for 8 hours on a normal day, not week. Outside work there's laptop, TV, phone..
Turn IDEs into dark mode
Wear glasses that filter blue light
1: Work in a well-lit room.
2: Make your monitor mostly white. Adjust it so it is as bright as white wall. Preferrably it should also has the same hue, and black should be as black as possible without loosing near-black details.
Nobody is offended by a white wall. It's a great way to calibrate your monitor.
Other tips for your eyes: Vary your focus. Every half hour you should look at something far away and something near. The monitor counts as near. Looking at the view out the window probably counts as far away
drink enough water
try to sleep enough
Yeah, generally, be healthy. Water is worth mentioning because many programmers drinks lots of coffee, which increases your need for water.
I know, its not very healthy to spend so much time programming, but sometimes you gotta what you have to.
Everybody has stuff to do. Programming all day is not a bad occupation compared to so many other alternatives. The unhealthy part is doing it wrong, like working under bad management that's causing bad stress.
I was wondering how experienced programmers deal with that?
I've been programming for 30 years, I think that counts as experienced.
7
0
Jan 21 '20
[deleted]
1
Jan 21 '20
I dont think I understand. So does "focus" the screen and blurs everything around? Google just shows my the usual blue-light-filter glasses...
2
u/Flamme2 Jan 21 '20
I do the same, but by taking my glasses off at the computer
2
u/pancakeQueue Jan 21 '20
I was so near sighted I had to wear glasses to read a computer monitor. I just got lasik yesterday, so time to to see how well I can see up close.
2
u/coldbrewandcarey Jan 21 '20
How’d the Lasik go? It’s something I’ve thought about for a while but am seriously considering now.
2
u/pancakeQueue Jan 21 '20 edited Jan 21 '20
Cost wise it was about 4500 without insurance, but with I got that price down to 2300. If I tap a HSA account I can still bring that cost down.
During the surgery they slice off the top portion of your cornea using a laser to create a flap, under that flap they use a second laser to etch or rework the mirror allowing you to see better. The whole process takes 15 to 30 seconds.
After the surgery my eyes were sore it felt like I put a contact in wrong and it was just better to sleep. Today the irritation is not as bad and only my left eye feels as if I have a minor contact out of place. My vision is now between 20 to 15 so that is already really good. I do have to put medical eye drops in for about a week, and lubricant drops in for about a month. Lastly the one downside is I can see major halos especially driving in the dark, but if I take the eye drops and make sure not to displace the flap on my eye while it heals I should see much better and the halos won’t be as bad.
Overall I would say very worth it.
0
Jan 21 '20
[deleted]
1
u/Flamme2 Jan 21 '20
I don't know who CliffGNU is, but I don't think not wearing glasses at the computer will reverse my myopia.
What I can tell is that if I've worn glasses at the computer for a while, it'll take some hours before I can see much at a distance even with glasses on, whereas everything is fine if I've used the computer without glasses.
8
u/AliceCloaked Jan 21 '20
Maybe it's placebo but I feel like light mode + warm white light in a room easier for my eyes.
Plus light shouldn't shine directly in the eyes and brightness of monitor and brightness of space around monitor should match, i.e. everything in the field of view should have one brightness.