A few years ago, while immersed in graduate studies in public health at the University of California, Berkeley, I wrote an article for a well-known general interest magazine about the H.I.V. epidemic among gay men in developing countries.