I have quite bad myopia (-4.5). My parents didn't notice this until I was in fourth grade (~9 years old.) I have a feeling that this contributed to my early enjoyment of indoor, "up-close" activities (reading, video games) in preference to "outdoor activities" where I would have relatively little clue what was going on at the other side of the soccer field/baseball diamond/etc. So, in a way, my bad eyesight could have pushed me toward computers.
I do remember before I was diagnosed having terrible coordination, I'd really struggle in games like Tennis and Cricket, whereas with Computers I had no handicap. It made sense to me to focus on what I enjoyed and computing was easier than Cricket.
So yeah computer engineer are more prone to wearing glasses than the general population. That doesn't mean that more hackers need glasses than regular people, but it could easily mean that hackers feel the effects of imperfect vision more than regular people, and because of it, are more prone to use glasses to correct said vision impairments.
> Daylight may prevent myopia. Australian researchers had concluded that exposure to daylight appeared to play a critical role in restricting the growth of the eyeball, which is responsible for myopia or short-sightedness.[37] They compared children from other developed countries such as Singapore and Australian children spent about 2–3 hours a day outdoors which could increased dopamine in the eyes that restrict distorted shaping of the eyes.[38][39][40]
http://en.wikipedia.org/wiki/Myopia
doesn't say anything about eye strain
But good catch on the "glasses as geek(ette)" stereotype!