I really doubt that Uber-esque fiascos are representative of the experience of most women working in STEM fields. Another point of comparison here though would be: was the medical field not very macho at some point? When the medical field was opened to women, early on, it was mostly men, in a field that had been traditionally masculine. Women had to make their place, and they did. Why did the same thing not happen in STEM? Why is it still not happening?
Surely tech companies now can't be less welcoming to women than the medical field in the 1950s-1980s? Particularly since this is an issue that everyone in tech is now consciously aware of.