The more interesting question, at least to me, would be about the experiences of gay programmers (I guess I'm biased). I can't speak for all gay programmers, but I know that my sexual orientation would certainly affect the people I choose to work for (e.g.: I'd like to work for someone who provided benefits for a same-sex partner, or who donated money to gay rights causes, while I'd probably not ever work for a company with a history of opposing (with policies or money) gay rights). It probably also affects the atmosphere of the place that I do work: perhaps co-workers deal with a gay colleague differently (not necessarily on a good/bad continuum: only differently) than they would a straight colleague. I could go on, but you probably get the idea.
Most of the replies present when I started this comment were skeptical of the possibility of a correlation between sexual orientation and code quality. I happen to agree. What about the correlation between sexual orientation and employment in certain industries (affecting what code we write)? What about sexual orientation and choosing to be a programmer at all?
I'm kind of hoping that this doesn't get downvoted to oblivion: it might make for an interesting discussion (or flame war).