Admittedly it has been many years since I took a CS class as a student, but there was always an 'Us' vs 'Them' attitude. We were the under appreciated group and we would show 'Them'.
During my University years this would take the shape of our classes arranging to have exclusive assess to the University's Computer Labs (kinda like gerrymandering) during assignments submissions (which adversely affected other students outside of our CS course) and taking a dim view of people who took CS units as an elective.
I now teach in IT and I have to say this attitude is still displayed by many male students. Sometimes the attitude of the males students to the few females in the class is appalling, and I always call them on it.
The industry isn't racist or sexist, but I have to say that sadly many of the practitioners in our industry appear to be and THAT IS JUST AS BAD.
As an Industry we do need to be aware of this and address it as early as possible and punish those who display these sexist and racist attitudes and not punish the victims of these behaviors.
It will take time, but if we claim to be inclusive that means that we have to work at making sure that, as an industry, we are, and we also need to identify those who are not.