Now here's my answer: This isn't about sexism. It's about the way a group of men behave when they are working in / learning a field of study where the overwhelming majority have, in the past, been men. It creates a lot of needless tension for the women in the group.
Women stand a far better chance of learning to program when they are in a non-intimidating environment where they don't have to put up with a bunch of condescending jerks (take your pick): staring at them, competing with them, putting them in "their place", patronizing them. And this is not because they are women, but because enough of the guys are jerks. Reverse the roles, and this would be just as true.