No longer a developer, and never thought of it this way, but ...
I wear photo gray glasses (or whatever they call it now) with a UV coating, and sunglasses when i drive (against eye fatigue, the windshield already has UV coating).
I am 38 and some of things I started doing these things since last 2 years or more.
1. Increase the font size. Starting with having a zoom of 150%+ on most websites. For example, on HN its 170% and on Reddit its 150%. On Visual Studio Code, I started using 18px as the editor font size.
2. Night Light on Windows 10 and low blue light mode on monitor. It sucks on some websites, but I am used to it now.
3. Blue light filter on my Glasses. This is recent and it seems to help.
4. Simple eye exercises and 20-20-20 rule for eyes.
I had the idea of increasing the font size as a lad at university. It was the worst. Everything was so easy to read, I practically didn't have to blink any more. Even when my vision went blurry after 12 hours of hacking, I could still persist, since I could make out the characters. Never had my eyes been so tired!
I put an end to the experiment and instead switched to a smaller font---a font that is only legible when the eyes are relaxed and moist, requiring you to blink, and to take breaks. Smaller text crams more symbols into the foveal region of your vision. Your eyes need execute fewer saccades to scan it.
I, too, do the night mode thing, and have had blue filtering glasses for a few years.
Thanks for the article. As per the article, the main reasons for fatigue is the dry eyes, headache, sensitivity to light. I deal with dry eyes by doing the 20-20-20 rule and the sensitivity to light by trying to get the better sleep.
I wear photo gray glasses (or whatever they call it now) with a UV coating, and sunglasses when i drive (against eye fatigue, the windshield already has UV coating).