Is it just arbitrary? Do you just depend on more people enforcing their views out to stop harassment? If so, then why not codify it?
Yes. Just as "kind" is. To the reporters and the officials, "saying somebody is wrong" is unkind, so it's clearly arbitrary.
As a white, male engineer, I haven't ever found a need for codes of conduct because I've had the privilege of never having been harassed. This isn't the case for all groups, so it's best to have one.
Except... they don't.
They say things like (quoting from the NumFOCUS CoC):
> We will not accept harassment or other exclusionary behaviors, such as:
> ...
> Other unethical or unprofessional conduct
That leaves things wide open -- whatever the committee decides is "unprofessional" is hereby banned. How am I supposed to guess their mind?
This is what they're supposed to do. In reality, this is impossible because so many of the rules in a CoC are subjective, and therefore are enforced based on the opinions of the people enforcing the CoC.
> but more importantly, give organizers something tangible to point to when there is a violation.
This just gives the enforcers a sense of moral authority to impose their opinions, nothing more. I don't see that as a benefit of what is inevitably an incomplete document, and frequently poorly thought out as well.
How many conferences did you run before CoC's became popular?
As an example, the mozilla community participation guidelines (currently at version 3.1) are quite short and readable and many sections are essentially your "dress appropriately" example (i.e. "Be Respectful"), with quick a paragraph to clarify the idea.
https://www.mozilla.org/en-US/about/governance/policies/part...
One option is to designate someone or some group as arbiters / benevolent dictators, and have the rule of "If so-and-so decides you're making the place worse, you're not welcome." It's certainly effective. But it exacerbates Jeremy Howard's complaint - which is not so much about CoCs per se as about the group of people who enforced them and the way in which they did so. I don't think getting rid of CoCs will really solve that problem.
One option is to have a closed or invitation-only group - but that's at odds with the goals of many communities. (And it doesn't reliably solve the problem, it just makes it less likely you'd run into it.)