Yeah? So this high school programming class isn't so much a programming class as a crash course in coping mechanisms for gender-based harassment?
Please. It's the educator's job to create a safe space for, you know, education--for every student in the class, not just the privileged majority. It's their job to track their students' education and interest level, and make adjustments if either starts dropping. It's not their job to facilitate a hostile environment and let minority students flounder in the interests of 'real world training'. It's not their job to decide that since it's hard for women in tech in real life, it should be hard in their class. Education isn't about maintaining the world we already live in, it's about shaping the world our kids will live in.
You want real world training? Show me an HR department in a software company that's fine with comments like "get in the kitchen and make me sandwich". Which real world are you advocating this high school programming class introduce to a 16-year-old girl?