If you have a mac, try Flux [0] for adjusting the color ambience of your screen based on time of day.
In general, keep the lights on, don't code in the dark. High contrast between your desktop and environment is bad. Keep your eyes at least an arm's length away from your monitor.
Source: I have 20/20 vision and have been addicted to computers my whole life.