Good for you. Sorry about all the jerks.
Since the studies apparently show that women are opting out because they prefer communication focused roles, others figure that all women are like that and would never want to be in the trenches writing code. And, indeed, many (or even all) of the women they have at that company may prefer those roles.
But even if many people are bad about stereotyping others based upon their past experiences, there are definitely places where people will be happy to see you program as long as you have the aptitude and the interest.
Unfortunately, one thing you will likely have to deal with throughout your career is programming departments dominated by male-centric attitudes and humor. (This can range from benign to outright offensive, depending on the people involved.) I don't really have any helpful advice for that. Then again, I spent a couple of years working in a very female-centric office, and that was a strange experience, too, so I guess that can work both ways. The last thing I want to do is to talk you out of programming, but you should go into it with your eyes open on this one.
"Human Interface Guidelines (Uhm, the other ones.)"
http://www.kdedevelopers.org/node/1051
KDE has had kind of an odd history with female contributors. At the time that I wrote that article, women were leading up every non-development part of the project (translation, documentation, usability, promotion / events, financial / political organization, artwork), but still only made up maybe 1% of the devel team.
My theory at the time was that (a) most people that were majoring in CS in the late 90s got into computers because they played computer games as teens and (b) in the early 90s games were much more targeted towards stereotypically male themes, but I'd have expected things to level out a bit more by now since the primary draw of computers shifted to the internet, which had a more level gender pull.
Not to condescend, but that will change in ten years.
I base this not on your gender, but on the observation that there are very few old programmers. Everyone debates the reason for this (i.e. is it age discrimination, or is it programmer preference?) but the fact remains that most programmers end up doing other things as they age.
If you assume the average programmer will start their career by their mid 20s, ten years seems a little early for "old" programmers to start a mass defection. I would not be surprised if many of the commenters here could be considered "old programmers" by that definition. I don't have a big sample, but in my experience, you're not an "old" programmer until you hit 45-50.
"most programmers end up doing other things as they age"
You base these statements upon what data? Your own observations? Then maybe you need another set of glasses.
There are several million hackers that would disagree with you. Too bad you haven't had a chance to meet too many of them. Probably would have been interesting for both of you.
Where's your data?
I don't know if it's common for project managers to contribute code in other companies. At husband's company, it is pretty much unheard of for for a project manager to write code. Project manager tends to be more of a technical writing/managerial position in his company. There's nothing wrong with that. But I have no wish to be a full time technical writer/manager.
As you grow older, you will want to write less code and focus more on software architecture and management of programmers.
Look on the bright side. You may not even have to work with them before they out themselves.
Some of us have to suffer for a while before we find out.
I think the article nailed it with this quote: "These roles would probably be ideal for women who prefer to be in communication-focused roles, if they know computer science and can communicate to all parties involved." My husband and several of our friends work at the same company. They are write code. All the women on their floor are relegated to "communication-focused" roles, like project/product managers. I've also run into this when people at my husband's office ask what I'm majoring in. When I say computer science, everyone's reaction is "Great! We could always use another project manager! You should talk to so and so about an internship." They look sort of baffled when I explain that no, I want to write code, not manage coders.