I'll give a little example here. A lot of programmers think that good programmers are the kind of people who program in their spare time, for fun, with no particular goal in mind other than having fun with programming. It seems like a reasonable conclusion because they are that way, and perhaps all of their colleagues are that way. I read this book a long time ago, and I don't own it so I can't look in it again, but I think I can remember enough to make this point… generally speaking, women are more likely to be into programming because of an end goal (i.e. "the program I'm working on will accomplish something good, therefore I am motivated to do it", rather than for the sake of programming itself. They may be just as good at it, but they don't sit around dreaming up things to program in their spare time. If you give them a task, or if they happen upon an open source project they care about, then they rock it. But if you ask them in an interview if they spend a lot of spare time programming for fun (a question that I myself have been asked in interviews both for graduate school and for jobs), they're more likely to say no.
Not a lot of women in software and I don't think the percentage has changed much, but I could be wrong. And for the record, I'm one of those guys who dreams up software and writes it as a hobby although for a few years out of school it was my profession.
I write code or think about software every day.
All the dev classes I've been taking are majority male but not overwhelmingly so. Maybe 60/40. I know it's classically a male-dominated profession but that's closing.
This is an interesting point - I studied law and more than 60% of my colleagues were female. However, nearly 10 years on, the vast majority of those with whom I keep in touch have gone back to university to study teaching (yes, almost exclusively to teaching). The males, however, have stayed in law. In fact only one has left law and he went to work in Human Resources for the law firm he was in as part of a 'corporate strategy' to have lawyers recruiting their lawyers rather than having professional recruiters.
Purely anecdotal and hardly worth the key strokes. But from talking to those who have left the profession not one has said that they felt pushed out or discriminated against. Their motivation appears to be a change in lifestyle (working fewer hours) and actually achieving something worthwhile (as opposed to pushing paper).
From talking to those males (and from my own view) the only reason that we stay in the field is because we feel a duty to earn as much as we can to provide for our partners while they pursue their other interests (i.e their decision to abandon law and take up teaching or, in one case, nursing). There is a chorus of "amen" when I point out that "could I quit my job, and earn the same money doing something else, I would be gone in a heartbeat".
Further, the highest earner in this group of some 50 people who graduated within 3 years of each other, is a woman who takes home nearly twice the income of the next highest earner*. Those who went to teaching are earning about half of the average wage earned by those who stayed in Law.
* She is pregnant and will be leaving the law when she has the baby - and previously had said she'd take a short break and then go back. She has since stated (after falling pregnant) that she has no desire to go back to work at all. Her partner wanted to be a stay at home dad, but she has said (in my presence) that it's her right to be a stay at home mum and, as such, he has no choice but to stay in a job that he hates to pay the bills.