Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for The Definitive Guide To Protecting Your Eyes For Developers👀
Sarthak Sharma
Sarthak SharmaSubscriber

Posted on • Edited on

     

The Definitive Guide To Protecting Your Eyes For Developers👀

Around this time 2 years ago, I was working day and night with my team to release a product. We used to sit more than 12 hours in front of a screen. The whole thing was quite exciting for us. But when you are young, you often neglect your health to seek thrill. Doing Hackathons was a hell of a thrill for sure, but we forget one thing: that working long hours staring at a display can harm our eyes, and it did. Two of us got prescription glasses within weeks. 🤓

It was a lesson learned the hard way.

When I first found out about my deteriorating eyesight, I started to freak out big time. I immediately started looking for information that would help me keep my eyes healthy. I made a few changes to my life and voila! My eyesight actually improved, and now I don’t even need to wear the glasses that often.

That was quite an eye-opening experience for me, pun slightly intended. So let me share with you what I learned. 🏃🏻‍♂️

Change your workspace 👨🏻‍💻

This is generally the most overlooked factor, and that’s why I’m discussing this first. We all know how to adjust our screens according to our eyes so I’m gonna skip that, but if you still wanna know more about it, readhere. The second and most important thing is the lighting. Try to position your screen in a manner that a window is either on your right or left to avoid that glare you get on screen. If you are using an artificial light source in your workspace, prefer over-head lighting. Don’t use extra bright lights that can put stress on your eyes. I personally prefer warm lights over white lights.

workspace

A quick exercise to do 🏋🏻‍♂️

You might have heard of the golden 20–20–20 rule. It goes something like this.

“Every 20 minutes, look at something at least 20 feet away, for at least 20 seconds.”

It’s what your doctor might tell you to do. And yeah, it works… sorta. If you know how far 20 feet actually is, and you don’t find it too boring. But honestly, it doesn’t work for me and a lot of other people, I’m sure. I tried it and failed miserably. So here are some easy and fun exercises I personally follow and recommend that can be equally helpful.

Bounce the ball on the wall 🎾

Bounce the Ball

As simple as it sounds. Just take a sponge ball (so that you don’t destroy your surrounding) and hit the wall. Try to focus on the ball while doing it. This will help your eyes move around and focus on different distances as the ball travels. It’s also very relaxing, almost meditative. You can also play darts 🎯 if you’d like. That helps too.

The water massage 💦

Water

Whenever you go to the loo, just try and clean your eyes with cold water by splashing some on your face, and give your eyes a little massage. This will relax your eyes and remove any dryness that might have set in. Don’t try to massage your eyes without washing them with water first, as that can damage eyes. Give it a try and you will thank me.🙃

Using these apps📱

We techie can’t help talking about some apps. These apps will help you directly or indirectly to save your eyes.

Aware/Awareness ⏱

Aware is a small menubar widget for mac that will show you how much time you’ve spent on your laptop without a break. So that you can be Aware, as the name suggests, and give your eyes (and your body!) a break every once in a while.

Awareness does more or less the same thing but it’s also available for Windows.

f.lux 🌅

f.lux is a very popular software that reduces the blue light rays coming from your screen. It automatically adjusts the colors of your screen according to the time of the day. Too much blue light after sunset can alter your sleep cycle (by tricking your brain into thinking it’s still daytime) and increase eye problems too. flux fixes that for you. If you’re a designer who wants accurate color reproduction at all times, this might be a bit of a problem for you. but otherwise, it’s a great tool.

And this is a great time to shout out to fellow developers. If you guys have any ideas of an app to help eyes, I’m up for collaboration. DM me@twitter

Diet is super important 👩🏻‍🍳

My mother says what you eat is what you become. Well, that’s true in this case as well. There are some dietary changes you’ll need to make as well.

The most important thing is water. If you stay dehydrated for long, that can lead to eye dryness and that further leads to eye strain. Drink at least 2–3 liters of water every day and that will not only help your eyes but your whole body.
Including these following foods in your diet can also improve your eyesight, and you may also get rid of those spectacles like I did.

  • Spinach
  • Kale
  • Grapefruit
  • Strawberries
  • Brussels sprouts
  • Oranges
  • Almonds
  • Sunflower seeds

Other than this, try to include lots of green veggies and protein-rich food in your diet. This is tried and tested advice, and also worked really well for me.

STOP USING THAT DAMN PHONE ALL THE TIME 📲

Work is important, I get that. But smartphones are ruining our eyes, much more than computer screens in most cases. Staying in bed for hours staring at those tiny screens, it’s gotta stop. Like I’ve already mentioned, the blue light from your phones confuses your brain into thinking it’s still daytime, and that disturbs your sleep cycle. So use your phone only when necessary, especially during the night, and when you do, turn on some sort of blue light filter. Most new phones come with an inbuilt feature for this.

Conclusion

In the end, try to go for a monthly eye checkup if you can. It’ll give you an idea about whether these tweaks you’ve made to your lifestyle are working. Get those glasses changed if necessary; using the wrong power can further harm your eyesight. And even if/when your eyes are fully healed, make a habit of using Blue-cut glasses.
Your eyes are arguably your most important asset, and believe me, you can’t afford to lose them. Precaution is always better than the cure, and these tweaks won’t take much of your time but can help you massively in the long term.

If I missed something, feel free to share that in the comment section. If you liked my post, share it with your friends and help them save their eyes as well.

Btw I'm on Medium as well. Check it outhere.

Top comments(119)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
dance2die profile image
Sung M. Kim
Exploring the world of TypeScript, React & Node
  • Location
    NYC - the Big 🍎
  • Education
    SUNY Stony Brook
  • Joined

Thank you for the article, Sarthak.

I've been wearing glasses since young and gotten worse little by little so decided to pick up oneeasy habit to start with (stare 20 feet away for 20 seconds).

And I also have a question.
Would glasses with blue-light protection help one to look at screen longer period of time? Or would it be just for a protective measure?

CollapseExpand
 
guneyozsan profile image
Guney Ozsan
Dad, Game developer, Musician, Artist
  • Email
  • Location
    Eskisehir - Turkey
  • Education
    BS and MS in Industrial Engineering
  • Work
    Unity 3D developer at Freelance
  • Joined

I started blue filter glasses 6 months ago. I can say it is by far the best investment for your profession than any book, education or hardware. Unfortunately the amount of time you spent on screen is determined mostly by the amount of work, rather than personal choices. So go for it.

CollapseExpand
 
scottishross profile image
Ross Henderson
Oracle, APEX, .Net, Xamarin.Forms, Flutter, Scrum Master, Musician, Dog Loverhttps://www.littlevictories.app/
  • Location
    UK
  • Work
    Software Engineer
  • Joined

I have the blue-light protection on my glasses and I HIGHLY recommend it. It is not a replacement to taking care of your eyes, but they certainly reduce eye strain. Couple that with good eyecare practice and you should have no eye-pain at all.

CollapseExpand
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

I'm not an expert,but I don't think so. As when you start looking on a screen more than usual, your eyes muscles become weak because our eyes are designed to look farther. So the special glass won't help.

CollapseExpand
 
dance2die profile image
Sung M. Kim
Exploring the world of TypeScript, React & Node
  • Location
    NYC - the Big 🍎
  • Education
    SUNY Stony Brook
  • Joined

Thanks 👍

And I will ask an ophthalmologist (scheduled early next month) regarding blue light glasses to be sure 🙂

Thread Thread
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

And please let us know 😊

Thread Thread
 
dance2die profile image
Sung M. Kim
Exploring the world of TypeScript, React & Node
  • Location
    NYC - the Big 🍎
  • Education
    SUNY Stony Brook
  • Joined

Sure thing 🙂

Thread Thread
 
ashwinv11 profile image
Ashwin Vaswani
colorful. creative. coder.
  • Location
    Los Angeles
  • Education
    California Institute of the Arts
  • Work
    Senior Software Engineer at sweetgreen
  • Joined

I can only speak from experience, but since I've got my blue-light glasses I've noticed my eyes feel less tired and dry at the end of the day!

Thread Thread
 
gurprit profile image
Gurprit
Frontend / javascript developer with 6 years of experience. Love everything JavaScript . I also do node and backend sometimes
  • Location
    India
  • Education
    masters in computer applications
  • Work
    senior frontend developer
  • Joined

When I broked my blue light glasses. I went to a nearby shop to get that fixed and the guy used a blue light radiation torch to determine if I was using a blue cut glass. And I was amazed with what I saw. That guys turned on the torch and pointed the blue light towards a paper and when he placed my glass between the paper and the torch magic happened . All the blue light from the torch was absorbed by my glasses and there was zero light on the paper

Thread Thread
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

Did you go to Lenskart? 😂

Thread Thread
 
gurprit profile image
Gurprit
Frontend / javascript developer with 6 years of experience. Love everything JavaScript . I also do node and backend sometimes
  • Location
    India
  • Education
    masters in computer applications
  • Work
    senior frontend developer
  • Joined

Nope. I used Lenskart in the past but I have stopped using there glasses

Thread Thread
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

They use to show like that 😃

Thread Thread
 
gurprit profile image
Gurprit
Frontend / javascript developer with 6 years of experience. Love everything JavaScript . I also do node and backend sometimes
  • Location
    India
  • Education
    masters in computer applications
  • Work
    senior frontend developer
  • Joined

Hahaha nooo, I was not at lenskart's store

Thread Thread
 
nmacd85 profile image
Nicole H
  • Joined

I asked my optometrist about them and she said there wasn’t enough time for research to determine if blue light lenses would be effective or not.

Personally I have not got them but more curious now.

Thread Thread
 
crenshaw_dev profile image
Michael Crenshaw

Had a checkup yesterday, and the astigmatism in one eye is worsening (still not bad enough to require glasses). My optometrist recommended blue filtering glasses, but made no definitive statements about their effectiveness, research- or colloquially-supported.

CollapseExpand
 
fabiopintodacosta profile image
fabiopintodacosta
  • Joined
• Edited on• Edited

I use the blue filters and I can only but recommend them. I used to have headaches that were traced to the time I spent daily looking at my laptop's strong lights. Those are gone now.

Got my gimmicks (Apple's Mac, iPad and iPhone) all set to turn on night shift from 19:00, by the way. Helps relaxing the usual strain, very relaxing.

CollapseExpand
 
dance2die profile image
Sung M. Kim
Exploring the world of TypeScript, React & Node
  • Location
    NYC - the Big 🍎
  • Education
    SUNY Stony Brook
  • Joined

Thank you for sharing the experience.
As I was shopping for glasses online, it seem like vendors charge extra for blue filter coating but sounds like it's quite worth it.

CollapseExpand
 
mohsin_majestic_d33461532 profile image
Mohsin Majestic
  • Joined

Great guide! Eye care is crucial for us developers spending long hours on screens. Thanks for the helpful tips. Also, if you’re looking to relax beyond just eye care, check outmsgkor.com — it’s a great site listing various massage shops to help you unwind and de-stress.

CollapseExpand
 
david_j_eddy profile image
David J Eddy
AWS Certified (x4), Automated Testing / Continuous Integration / Delivery / Deployment (CI/CDs), Cloud, Containers, Dev(Sec)Ops, Software Engineer.
  • Email
  • Location
    Internet
  • Education
    BFA from IADT Tampa, 4* AWS Certifications
  • Work
    Infrastructure Engineer
  • Joined

The combo of f.lux, no phones in bed, and diet saved my eyes. Great article Sarthak. This topic really needs more visibility in the dev. community. Personal health is just as important as deadlines and nerd cred.

CollapseExpand
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

Exactly. Glad you liked it. 😊

CollapseExpand
 
moopet profile image
Ben Sinclair
I've been a professional C, Perl, PHP and Python developer.I'm an ex-sysadmin from the late 20th century.These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
  • Location
    Scotland
  • Education
    Something something cybernetics
  • Pronouns
    They/them
  • Work
    General-purpose software person
  • Joined

I'm not so sure about this. Eating and drinking "well" may help slow down eyesight degeneration from factors such as vitamin deficiencies (I am not a doctor) but I can't imagine any but exceptional circumstances where they would repair damage or reverse a genetic trait, which is what you seem to be suggesting.

Two of us got prescription glasses within weeks

Was that perhaps because you were more aware of your eyesight after taking a job where small problems became more noticeable?

CollapseExpand
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

reverse a genetic trait

Well, I never said that I'm sure 😃.

CollapseExpand
 
moopet profile image
Ben Sinclair
I've been a professional C, Perl, PHP and Python developer.I'm an ex-sysadmin from the late 20th century.These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
  • Location
    Scotland
  • Education
    Something something cybernetics
  • Pronouns
    They/them
  • Work
    General-purpose software person
  • Joined

I'm saying that the tendency to common eye problems such as myopia, glaucoma and so on is genetic, isn't it?

Thread Thread
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

Well, of course, these tips are not for these cases, man. One needs a doctor if one got this not a ball on the wall 😃

CollapseExpand
 
mariocd10 profile image
Mario DeLaPaz
  • Education
    B.S Computer Science
  • Work
    Software Developer at NJ State Parole Board
  • Joined

I started feeling the affects of so much screen time that my eyes felt dry and tired at the end of the day. I installed flux and purchased the glasses that block blue-light to help. I've felt the difference so far and glad this topic is being discussed! great article!

CollapseExpand
 
scrabill profile image
Shannon Crabill
Front-End Software Engineer
  • Location
    Baltimore, MD
  • Education
    Art Institute of Washington, Flatiron School
  • Work
    Senior Email Developer at UnitedHealthcare
  • Joined

I also invested in blue-light/UX blocker lens and the difference has been life-changing. I wish I knew these were an option earlier.

CollapseExpand
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

Thanks Mario 😊

CollapseExpand
 
jenbutondevto profile image
Jen
Jen but on dev.to
  • Location
    London
  • Work
    Junior Full Stack Developer at Caution Your Blast
  • Joined

People generally tend to blink less when looking at a computer screen, as low as 3 times a minute as opposed to 15-20 times a minute otherwise. ¯_(ツ)_/¯ when you're deep into some code, it's difficult to remember to blink, seeing as we never have to think about it away from the computer.

As per the vast majority of developers.. it's dark IDE all the way. I've also started to usedark reader for my browsers anddarkify-ed my slack. Dark themes generally help with strain and the environment light/dark contrast. Also I believe light text on dark backgrounds is easier to read.

CollapseExpand
 
kurisutofu profile image
kurisutofu
  • Joined

In windows 10, there is "Night light" which does the same.

CollapseExpand
 
shalvah profile image
Shalvah
Builder, explorer, writer. APIs, dev tools, automation. Advocate of simple design. I blog at http://blog.shalvah.me
  • Location
    Lagos, Nigeria
  • Work
    Software Engineer
  • Joined

Android (8, I think) now has it too. Otherwise you can use CF.lumen.

CollapseExpand
 
biros profile image
Boris Jamot ✊ /
Software Crafter🐘 / 🐹 + 👷 = 🚀
  • Location
    🇫🇷 Caen, Normandy
  • Education
    Master's degree at University of Caen
  • Work
    developer at Orange
  • Joined

2-3 liters of water every day? Hum...
The body needs 1.5 per day and a part of it comes from what we eat.
I guess it's more around 1 liter per day.
Drinking too much can have negative impacts on your body.

Apart from that, good article, thanks!

CollapseExpand
 
mathiu profile image
Mathiu
Front-end enthusiast, working as a Web Developer.
  • Location
    Poland
  • Work
    Web Developer
  • Joined

Drinking too much can have negative impacts on your body.

Out of curiosity, is that actually true? any examples?

CollapseExpand
 
oscherler profile image
Olivier “Ölbaum” Scherler
  • Work
    DevOps Engineer at EPFL
  • Joined

Do you mean, apart from the fact that it’s the definition of “too much”? ;-)

I have to search for it, but I read an interesting article about how all that “drink a lot” propaganda has been artificially inflated in the past few years.

CollapseExpand
 
sarthology profile image
Sarthak Sharma
JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

2 liters is recommended by the doctors. If you workout more that number can stretch up to 3 or even 4. It also depends on the area where you live actually. I'm from India, 2-3l is quite normal here. 😀

CollapseExpand
 
moopet profile image
Ben Sinclair
I've been a professional C, Perl, PHP and Python developer.I'm an ex-sysadmin from the late 20th century.These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
  • Location
    Scotland
  • Education
    Something something cybernetics
  • Pronouns
    They/them
  • Work
    General-purpose software person
  • Joined

I don't think there is an agreed amount of water per day recommended by doctors. For one thing it will vary quite a lot depending on the climate.

CollapseExpand
 
gerbrandvd profile image
Gerbrand van Dieyen
Software Engineer, with strong preference for functional programming. 20 years experience in professional (e.g. paid) programming.

Good trick, had forgot about it, and just checked my display's brightness. It was still at 80%.
Another tip, if you're developer or otherwise entering a lot of text: change your color-schema, instead of the default use a dark color schema: black/dark background and bright letters.

CollapseExpand
 
nmacd85 profile image
Nicole H
  • Joined

Yes! Every new laptop or monitor Night shift is on and brightness is down. I don’t know how half my company functions with full brightness.

CollapseExpand
 
sbellware profile image
Scott Bellware
  • Joined

Is this causation or correlation. Would those people who got prescription glasses have gotten them anyway? Was the incidence rate of need to use corrective lenses disproportionate to a larger, representative population sample?

Should we be providing prescriptive advice before establishing definitive cause? There's no doubt that being healthy is better than the alternative, but if we prescribe solution before knowing cause, we're just contributing to the rise of superstitions rather than scientific predispositions in software geek culture. And this is the very same predisposition that creates a breeding ground for the unhelpful fads that keep software development flitting from wild assertion to wild assertion.

Some comments may only be visible to logged-in visitors.Sign in to view all comments.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

JavaScript Nerd👨🏻‍💻| Philosopher🧘🏻‍♂️ | Life Hacker🔧 | Health enthusiast🏋🏻‍♂️
  • Location
    Earth 🌏
  • Work
    Founder at Skynox Tech
  • Joined

More fromSarthak Sharma

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp