Codes of conduct.
> Could J. K. Rowling require Harry Potter readers to follow a code of conduct? Could Werner Heisenberg demand that you subscribe to a code of conduct if you want to do quantum physics?
...
> Codes of conduct typically make laudable promises such as “We pledge to respect all people,” in an attempt to convince readers that they [the authors] will behave laudably. In my experience, though, people who put a lot of effort into telling you how laudably they will behave do not behave any any more laudably than other people do — slightly the contrary, in fact. ...
> ... I expect that I’ll be delighted if you send me patches and bug reports, but on that count I make no promises. Feel free to send them repeatedly through different channels if you don’t get a response at first, since I often don’t notice things. If you like how I respond when you send me patches or bug reports, then maybe it would be a good idea to do more of it. If you don’t like it, then maybe you would be happier if you stopped. I’ll do my best to be polite, but I screw that up pretty often, to be honest. ...
> But, as I said before, what humans tell you they will do is not a very reliable predictor of what they will do. If you want to know what to expect of them, look at their past behavior. Don’t just look at their self-reports of their past behavior, although admissions against interest there can be quite revealing; look at traces it has left that they cannot delete, such as your own memory, mailing list archives, past Gitlab issues, and other people talking about them.
Nobody attempts to apply codes of conduct to users of software - that's the domain of the license agreement. They only apply to communities. Virtually every online community around harry potter has some set of rules for participating in that community. e.g. https://stories.jkrowling.com/terms-of-use/
> Could Werner Heisenberg demand that you subscribe to a code of conduct if you want to do quantum physics?
Heisenberg was the post-ww2 president of the Kaiser Wilhelm Institute for Physics (quickly renamed the Max Planck Institute post war) - which was involved in human "medical" experimentation in nazi concentration camps.
During his governence: "after 1945 neither active participants in the Third Reich nor hangers-on were called to account" - https://www.mpg.de/history/kws-under-national-socialism
So a guy who presided over an organization that didn't bother to clean house after being directly involved in the fucking holocaust isn't exactly my go-to for how to run a healthy community.
Do you learn much with this approach?
But back to your point. Your point was made using two examples. Bad examples, in my opinion, since the first doesn't apply (consumption of work vs collaboration) and the second one also doesn't apply (building on others work vs collaboration).
Your further point about watching what people do vs what they say they do is a reasonable point, but doesn't have much to do with the value of a code of conduct. I'm pretty much in agreement, that's the best way to proceed when collaborating with a single individual - but communities are more than the sum of their parts. If there are three people collaborating on a project, and one swears a lot in their commits, and one prefers a lack of swearing, and one doesn't care either way - how do you resolve that conflict? Nothing you've said offers a useful tool to navigate that situation.
I addressed the point about when codes of conduct apply to users of software in the document linked.
He couldn’t. All he could do would be to dictate the code of conduct for physicists working at the MPI. And if you don’t like his code of conduct, you can go to a different institute, or take it up with the community or the board of directors for the institute. Your implied scenario of “what if a nazi wrote a code of conduct” doesn’t scare me because the only thing worse than a nazi is a nazi in hiding. And if the code of conduct contains no nazi agenda, well then he can be held accountable if he does something against the code of conduct (like, for example, being a nazi)
And that's precisely why I think it's absurd for a code repository to have a code of conduct.
I don't know why you keep asking me questions that are answered in the document I linked at the top of the thread. It's less than 1000 words long, you can read it in three minutes.
You don’t actually specify any beef with what you call purpose #1 - an agreement within a group about how it should be governed. Except for, as you say, single developer or small group projects - that’s the stated purpose of ALL codes of conduct. Some may contain ethical postering or demands of users (i’ve never seen that) - but those are malformed codes of conduct and should be criticized for those flaws not for being codes of conduct