You must log in or register to comment.
Probably depends a lot on what programming language you’re generating, though. Python is notorious for needing tons of asserts and unit tests to ensure correctness, and is frequently used by programming beginners as well as for prototyping, where code quality isn’t looked after as thoroughly.
I also have to say, though, whether a code snippet is accepted or not always felt like a bad metric. I frequently see folks accepting a code snippet and then fixing it up inline. Or worse, checking in that code snippet and then a few weeks later when someone has to read that code, then it has to be cleaned up.



