If you want a definition of the workplace, it includes hacker meetups, youtube videos, presentations etc. where people of all social groups come together to discuss or create code. I have a very twisted sense of humour that many would find offensive. At work though I keep that side of myself under wraps, not out of a sense of fear but of respect.
The bottom line is this: by collectively changing our behaviour to be less offensive (from the point of view of gender, sexuality, race, religion etc.) then people from those groups feel more safe and secure in that environment. If women truly felt comfortable to enter into the currently male dominated tech industry we get a bigger talent pool to choose from - the competition and skillset increases. Now re-read that sentence substituting 'women' and 'male dominated' with any minority/majority pairing and we start to see how much bigger we can make the number of available programmers.
It may seem dull to have a workplace that's so sterile and inoffensively humourless, but it's work, not a bar.