When my eyes are tired, I just start programming with my eyes closed. (Although, I open my eyes every ~20 seconds to make sure that I did not screw up ^_^)
I was wondering if I have lost my mind, or if any one else does this :P
Anyone can code with their eyes closed, but there's no guarantee that the code will even make sense. Still, if your eyes are closing when your tired, it's your brain informing you that its shutting down (not permanently, obviously) so it can get some sleep. Sleep deprivation can do that to ya'. Amazing, really.
Back to the question in hand, no, I don't code with my eyes closed; bad practice, an' all.
I can't say I program with my eyes closed. I always usually program in a well-lit environment, and I make sure to take frequent occasional brakes. I mostly agree with ModShop on this point: try setting a black background on your editor and turning down your screen brightness.
For a while, I would program with one hand while having to hold my old MacBook's computer screen so that it'd refresh, but that's a tangent. :P
@BHXSpecter Amen lol
@ModShop I have my screens at the lowest brightness level... and I use black backgrounds in vim :-/
@Albatross taking breaks might help... I only breaks for lunch atm
@Wazzak If all else fails, I will go get an eye test..
Yeah, I have 5 classes at school (all programming) plus my freelance work, so breaks (and sometimes sleep) aren't an option; however, I do find that it helps to use some "liquid tears" to moisten your eyes a bit.
@Randi Miller: A little bit off topic here, but I was just curious about your school. 5 subjects and all Programming? What subjects are they? Sounds just like my dream school. :)