Fair enough, although I think my point about variance in what is considered professionalism is conceptually separate from issues like sexual harassment. Sexual harassment is a crime (or tort, depending on severity). Illegal activity is obviously "unprofessional" in the broadest sense (like assaulting or stealing from a coworker or candidate), but I was using "professionalism" to refer specifically to things which are not blatant crimes/torts or even social mistakes in non-professional settings.
Your example of being invited to a bar after an interview is a perfect example. It's right on the edge of what could be considered professional, at least assuming you were in Silicon Valley where such things are presumably somewhat common. Many candidates might find this very appealing, while many might find it extremely off-putting or even hostile. Personally, I would be closer to the off-putting side, although that might not have been true 5 years ago. I'm not a female, but I can certainly imagine it feeling incredibly off-putting or hostile.
I agree there's some grey zone, and I was definitely a young brogrammer who it appealed to, but I'm now seeing the errors of my ways and I hope younger engineers listen to what I'm saying and avoid those cultures.
Your example of being invited to a bar after an interview is a perfect example. It's right on the edge of what could be considered professional, at least assuming you were in Silicon Valley where such things are presumably somewhat common. Many candidates might find this very appealing, while many might find it extremely off-putting or even hostile. Personally, I would be closer to the off-putting side, although that might not have been true 5 years ago. I'm not a female, but I can certainly imagine it feeling incredibly off-putting or hostile.