> I have been a TA for weekend workshops that teach women to code. My male co-TA’s constantly asked me throughout the workshop how I was enjoying learning to program.
This one confuses me. I would expect that at these workshops all the TAs are introduced to each other before teaching begins, and so if the male TAs are trying to be funny, this would stop after the second one does this and is dismissed from the event (I'm presuming that after the first one does it, she tells him that she does not find it funny, and so the second one constitutes harassment). This should not be happening constantly, and I'd expect word to spread so it no longer happens at future events.
If the TAs are not introduced to each other, and are not wearing prominent tags or something that identifies them as TAs (and the students are not wearing anything that prominently identifies them as students), then given that women are are very underrepresented among programmers and that women are massively overrepresented among the students (it's a workshop to teach women to code), then the male TAs are doing nothing wrong. TAs should be proactively asking students if they are enjoying themselves. Note that if they first asked if the person was a student, they would be kind of committing the "you don't look like a programmer" offense.
I find the second case hard to believe, because I doubt these workshops would be so huge that the TAs would not all learn who all the other TAs are when setting up before the students arrive, so what the heck is going on?