Is this kind of shit any better?
These days, school policies generally insist on separating disciplinary and academic issues.
For instance, I had a student (13 yrs old?) in an advanced math class that was all male (I'm female) and he had a habit of starting to blurt out mildly veiled sexual comments to me. I said a few things to him about what was appropriate in class, in a kind way and privately, and I also arranged for a male administrator to chat with him. It stopped. Grades have nothing to do with this -- they're not effective in any way in setting classroom tone, especially as they're feedback far after the semester ends.
I'm sorry for all these Hacker News readers who had shitty high school experiences, but you do need to grow up and realize they were shitty. Turning around to dump the shit downhill -- or indulging in some sort of Stockholm syndrome -- is not going to make the world a better place and it does not make you a better person.
I don't always do things perfectly; I remember one female student who was being aggressively and unwillingly courted by a football player in one of my classes and I wasn't able to prevent all the distraction. But I noticed and did what I could, and commented to them separately about what is and isn't alright in the classroom. Seriously, folks, it's not that hard to have expectations for appropriate behavior and enforce them.
I don't say the teacher should do nothing, but this just don't work.