I agree with @timkaye that comments on DOC should not be enabled nor back ported. Anyone who has ever studied those comments in depth knows that too many of those actually are not only wrong but even dangerous at times.
It also adds a whole lot of work we do not have the *power for.
Unless of course someone is willing to take on the work of reviewing and vetting each comment, and with vetting I mean vet, not just spell check. This means to test each code comment, make sure it doesn’t propose crappy unsafe approaches or plain wrong things. Then, as soon a release is made, each of those comments may become outdated, and would need a revision.
IMO, and as mentioned during the extensive discussion of implementing DOC, we should learn from this and not implement it
About the code snippets repo part, I am hugely in favour of doing things centrally and that means keep it in DOCs, not using GIT.
My only concern about that I expressed before already: we take on a certain responsibility when we publish code snippets on “our” sites. This is different than documenting core code or best practices or example code in a DEV Doc. Those are A) vetted during development for core code, B) very carefully crafted when writing up DEV Doc.
If we want user input on the code snippets, then I say we just put a link to the gist or repo in GIT with a big fat disclaimer about “this is user shared content, use at your own risk”, and that’s it.
However I do not see why we would want direct user input.
The actual benefit of a dedicated and curated snippet repo is IMO only granted if the code gets reviewed, and that directly require that only a few people can post it.
Everyone could suggest their snips, in any way they want, and they can even get attribution in the snip if it gets posted. This would make this repo unique, due to its degree of vetting and so on.
This is similar to having comments enabled that get reviewed, but it is central, and not spread over 8k posts.
Otherwise, it is just another SO, where basically all kind of weird stuff will get posted.
Anyway - to proceed on this, all we need is to decide. If we do it on the DOC site, I am happy to add CPT or similar, it takes perhaps an hour to do so.