These articles are typically published in rags like the Atlantic, which I would imagine have fairly equal gender-distributed commenters, or even skewing female. Or if you mean comments on HN, how do you know the genders of the people who are commenting? Not everyone mentions their gender in their comment / profile.
https://news.ycombinator.com/item?id=2175603
There was a similar poll this year with similar results but I can't find it.
Those are my limited experiences, anyway. I'm sure some one will say that I've only encountered the most bigoted communities for me to have this impression.
One can try to visit tech websites, or even tech offices. I am a woman, and I'm often left with a feeling of being 'the other', sometimes unfavourably so. The most obvious cause is that it is often a community of mostly men discussing both male and female characteristics. A more subtle clue is that it seems that they refer to women as "females", but men as simply "men". Some communities are even hostile to the idea of feminists - in turn some feminists forego speaking up about their feelings, and pretending to be "just another bro".
One crucial difference is, of course, that feminists only talk about gender and things that are related to that. Tech-communities might sometimes talk about gender, but most might only talk about it when it is somewhat relevant to their tech-interests. Feminists, on the other hand, have a practical monopoly on gender-opinions as far as mainstream opinion is concerned. And they're mostly women, and might even reject men into their circles. Programmers being mostly men might bias things like technological choices, but the bias towards women in gender-theory (might as well say feminist-theory) doesn't change a niche thing such as what programming language powers the client-side web, it heavily influences popular opinion on what men are and what they should be like, even though they are not really a represented group. That might not be a problem if some vocal feminists didn't try to work against alternative paradigms of gender theory, but in my experience, they do.
Your last point would be more analogous to my own if you said that some communities are even hostile to the idea of women programmers (if that is indeed true).
I work at a top tech company in Silicon Valley, in a team of 200 men and 10 women. The men aren't intentionally hostile towards me at all, but they are blissfully ignorant of how their comments and behavior genuinely makes it hard for the few women around them to succeed and be considered equals.
And here on HN it's invariably 'guys' and 'girls'. Women get the diminutive form. It's a little emasculating, yes.
"Series of tubes"
But being other means you are special and provided some sufficient open mindedness, you can bring a fresh point of view to the discussion.
One thing that is quite special in my life: I have the honour to be around several young girls via my family and friends, and they don't treat me any different at all and often tell me pointedly how they know more about their devices than I do (I don't play games so they delight in showing me the details and beating me).
Sandberg has a right to her own opinions about how things work for her as a leader and a parent. Just like everyone here has their own opinion about pretty much everything.