"What do you say to the guy who sits across from you when you dress up and makes a comment to everyone about it? "Oop, Katie's got the low cut dress on today! I know where I'm sitting!" Yikes! What sort of a place was this, what sort of people was she working with? I've never seen/heard anything remotely like this. It is sort of hard to generalize from such morons to the whole tech field.
Since managers tend to hire folks like themselves, it's really a symptom of dysfunctional management and an organization.
Thankfully there are absolutely places where this insanity doesn't occur. I don't know how to find that out prior to working there, however. :(