I have been through some really awful experiences in the workplace in the last few years, and some of the most egregiously abusive behavior came from another woman. Women can be incredibly cruel to each other, and this woman in particular seemed to have it out for other women. Women are not inherently saints, and they are not inherently kind to other women.
On the other hand, I have often, often worked on teams that were (except for me) all men, but by and large they were men who had mothers, wives, sisters, and daughters that they loved, and who therefore had no trouble relating to me with respect and affection. While it is true that some men treat women specifically badly, and that some men treat people generally badly, it is not true that men in general treat women badly. Quite the opposite.
It does take a moment, as a woman, to find your feet socially in an all male space. But does it not always take a moment to find your feet in any new space? I have generally found that what makes it go smoothly is the fact that we are all hackers. If anything, it is all the walking on eggshells about sexism that makes social integration awkward at first. People are trying to figure out how they are "supposed" to behave around me, worried that I will be aggressive socially and legally. When we focus on the work we do together and the love we have in common for the field, we become friends naturally and get along well.
I myself think all the hand-wringing over demographics has been a waste of time at best and counterproductive at worst. I think it makes more sense to focus on developing virtue, civility, and good leadership among the people who find themselves here.
In my teens my mom tried to reenter the workforce and got an office job, and she absolutely hated working with other women because of this. She wanted to work with men because in her experience, women were so much worse.
For a number of years I had the sense that I might be going crazy, because it seemed that throughout my whole working life I'd encountered good and bad people of both sexes, but never witnessed the kind of systematic targeting of women that both mainstream and alternative media sources told me was rife. How could it be that I couldn't see what was apparently right under my nose? So it's reassuring to know that there are also women who have had a similar experience.
FWIW, I do think most men with wives and/or daughters are generally thoughtful coworkers, but I'm not sure that's a majority in most tech workplaces, especially the ones that skew young. Thinking back to my own experience, I think, I was blind to a lot of the things I'm speaking about (or perhaps even resistant to the idea of calling it out) until I had a long-term partner.