And how to you "expose and remove the discrimination" in this case?
What I meant by "expose and remove discrimination" is point out that the team atmosphere is hostile to women, and start disciplining people until that changes. Or, realize that Fred is automatically rating resumes lower if it has a feminine name, and confronting Fred on that. Or... you get the idea. If there's something going on (other than lack of viable candidates) that leads to fewer female programmers, find it out and fix it.
The remaining problem is lack of viable candidates. To fix that you have to fix problems outside of your own organization - problems in the education system, in homes, and in society in general. That's a tall order, and it's beyond any one person's power. But still, when you see obstacles that differentially harm females (or blacks, or gays, or whoever), don't just ignore them. Do what you can to expose and try to fix them.
Maybe read what you write?
But I did have something of a point too, namely that the lack of females in programming jobs is not just due to discrimination in the hiring organizations. Some of it (not all) is due to there being more male candidates than females who meet the same qualifications. Like it or not, that seems to be the current reality.
So what I was trying to say is that we need to address that. We need to fix actual discrimination in hiring organizations, and we need to address the supply of qualified candidates. (I was not trying to say that there are currently no qualified female candidates, but I see how that line could be taken that way.)
http://america.aljazeera.com/opinions/2014/3/christians-pers...