I'm pretty far on the sidelines here but I don't really understand the CoC hate. Code of Conducts feel like unit tests for a community along with a plan of action if one of those tests fails.
Just like there are bad unit tests, I'm sure there are bad Codes of Conduct, but on the whole it seems like a positive thing to clearly state how things should go in a community.