That’s terrible. You should absolutely not have to put up with that shit. Thanks for making your story public, it’s gotta be helping the culture to get it out there.
I’m a developer too, and for the first time in a long career I’m on a team that is mostly women. My project lead is a woman. It’s pretty freaking awesome. Way less (none?) posturing and heirarchical dominance games — and way more focusing on writing good code and shipping products.