Code of conducts are not new mechanisms, but codifications of policies, which is not a new practice either; online communities have always established rules and policies. The free software community more so than others even: http://lists.gnu.org/archive/html/guix-devel/2018-10/msg00612.html