I must admit that I'm also offended by the housewife joke in spite of being a male since my wife is a housewife, and she's probably overall a lot smarter than me. :-D I don't know what to do about this situation.
I'd love to see more female programmers for a start. I taught CS 101/102 for a brief period in my life (though the academic vibe wasn't my thing, I wanted to create software), and I was disappointed to find that among multiple semesters, I only had one female student the whole time.
Yet she was one of my finest students -- the most enthusiastic, hard-working, most willing to ask questions, always sitting in the front row. There was one characteristic she lacked, I think due to a lack of confidence. I had to encourage her to play around and experiment in the code more. She wanted to do everything by the book, according to the regular parameters, and I had to push her to try bending the rules and experiment a lot more to discover how things work and discover how to best do things. I don't know if that one sample is at all indicative of a sociological trend within female programmers, I just found it interesting that she was hard-working yet so timid and afraid to play around in code.
I think what exacerbates this issue is that programmers typically aren't the most outgoing social types. In fact, I can think of few other professions with such a strong antisocial vibe besides maybe a mortician.
Issues like sexism are often the result of social isolation/segregation of some sort. If you get a whole bunch of antisocial guys who have never been with a woman let alone talked to a number of women really intimately and openly, what you tend to get are a group of guys who hang out with other guys who imagine how the world works in a way that's completely detached from actual experience. They're also incredibly intimidated by women, believe it or not. It's just that their way of hiding their insecurity is to feign superiority and make a bunch of chauvinistic jokes.
To me the two biggest solutions that come to mind are:
- Make programmers in general more social, outgoing people who can speak openly with women all the time. This is probably pretty hopeless.
- Get more female programmers to start putting the male programmers in their place. This seems a little less hopeless.
So perhaps we just need more female programmers like yourself!
For the SO side of the topic, if you know any female programmers who aren't on SO, maybe encourage them to join? The numbers help to restore the balance.