Agree with poster who said ambient light should match brightness of monitor. I always turn my monitor brightness/contrast WAY down so that I don't feel like I'm staring at a light bulb all day. This simple adjustment does wonders for the eyes.
What worked for me was changing from black on white setup to white on black -- in whatever editor you use, make the background you stare all day black. MUCH easier on the eyes.