Yivi pretty much summed up my main problems with the first two comments, but I have other feelings on the rest of them.
To answer this question properly would require an entire chapter of a [language] textbook.
I hit this up in a comment on Yivi's answer, but I'll throw it here for future proofing and keeping things together.
This comment feels unnecessarily dismissive. Accurate? Quite often. But this could be reworded better:
An answer for your question as written will be too long to be effective in our format. To get good answers, try narrowing your question down a bit to a single, very specific problem.
Potentially including a link to MCVE, along the lines of "You can see the [mcve] page of the help center for help on how you can narrow this down" or something. (With or without the magic link.)
While it says the same thing, and yes is slightly longer, it doesn't feel like a dismissive "Eh, too much work, go read up on it instead."
Stack Overflow is not geared for helping people get started with large projects. Please come back when you have a concrete and specific question.
A little confrontational, but true enough. I personally would reword this similar to
Stack Overflow's format is not fit for questions about getting started with projects. You'll get better answers if you try it on your own, and come back to us when you can't find an answer to a problem you hit.
Again, slightly longer, but more informative. After all, what is a specific question? Here, I've expanded a bit on what to come back with.
I see many errors in this code. You should have a face-to-face conversation with your instructor about it.
A couple things make this one not sit well with me. First, it assumes they're still in school and have an instructor. They could be a professional developer that is either really bad at coding, trying to fix code they inherited, or trying to learn a new language. Either way, this feels... Kinda insulting, but that's my opinion.
I do not understand what this program is supposed to do. Please explain.
I don't see a problem with this one. You might get snippy replies, but it's pretty clear the feedback you're giving here. My only suggestion might be to add specific bits you don't understand, but that's going to be case-by-case, and sometimes... There's really nothing more specific you can ask.
I do not know what you mean by "it doesn't work." Please be more specific.
Same as above, this is pretty clear feedback. No problems here that I see.
The bug is in code you have not showed us. Please read and follow the directions at https://stackoverflow.com/help/mcve.
Same as above. If you're at all worried about the first sentence sounding confrontational, it could be reworded to "I cannot reproduce your error, the bug may be in code you haven't shown us."
But honestly, I think this one's fine how it is.
As described, this is not possible. Please explain why you think you need to do this and maybe we can help you find a better solution.
Asking for clarification for an XY problem. Nothing problematic here.
This is a bad idea, because [reason]. Please explain why you think you need to do this and maybe we can help you find a better solution.
Same as the last one, and explaining the reason it's a bad idea makes it very helpful. Looks good to me.
So while the first set could be improved, and I would recommend it if you're trying to improve what new users think of your comments, your last five feel spot on to me.
Of course, keep in mind there will always be users who think you're rude or hate your comments, and refuse to cooperate. No amount of language tweaking can help that.