Cerbrus's answer suggests that we should each "Speak as you like to be spoken to". Well, with that in mind...
I would be annoyed to be on the receiving end of your comment, especially as a nervous new user trying to make a good first impression. It's imprecise about what, if anything, I've done wrong, and I'd find that frustrating and stressful. This is a defect that pretty much all boilerplate comments necessarily have, by their nature, and is a reason I'm mostly against the use of boilerplate comments.
The suggestion to paste the code into dotnetfiddle.net and check it compiles hints that maybe my code doesn't compile. But it doesn't outright say it... so maybe it does compile, and this is just a generic suggestion that you give to everyone? Have you actually checked before commenting? I can't tell.
The link to mcve.net is worse; you're suggesting that maybe you think I should trim my example down (it's not "minimal") or maybe you think I should add in boilerplate like using
statements or wrapping methods in a class (it's not "complete") or maybe the code doesn't actually cause the problem I'm asking about or I haven't actually explained what the problem is clearly (it's not "verifiable"). Or maybe actually none of those things are wrong, and you're again just generically suggesting that this would be a nice page to read?
Your comment is essentially equivalent, in terms of its content, to this:
Welcome! I may or may not be displeased by your question. Maybe the code doesn't compile, or maybe it does. It's possible that you're lacking a clear problem statement, or that your code doesn't actually produce the problem you're asking about, and that this displeases me, or alternatively maybe neither of those things is the case. Additionally, I'd like you to know that you have provided either too much, too little, or exactly the correct amount of code. Have a nice day!
If you received that comment, wouldn't you think that the commenter was being unhelpful, and, honestly, a bit of a dick?
And it's actually worse than that, because you're actually sending the user off to read about 15 paragraphs of prose, in what may not be their native language, just to extract the non-information that your comment contains. (Presumably, while somehow simultaneously reading and responding to comments on the question, since we also ask askers to be available to provide clarification in response to comments.)
No matter how polite or cheerful the tone is, it can't make up for the fact that you're dumping a giant page of prose on the asker and insinuating that maybe the asker's question has one of several somewhat-subjectively-defined problems without providing any detail about which of them you think is the issue.
It's not much effort, and much, much more helpful to the asker, to write something like:
This code doesn't even compile.
or
There's way more code here than you need to demonstrate the problem. This question would be easier to understand and more useful to future readers if you trimmed it down to a minimal example.
or
You haven't provided the implementation of the frobnicate_widget()
method that your sample code calls, and without it, we can't tell what's going on.
or
Your code works fine and does not produce the error that you say it does.
or
It's unclear in what way this code "doesn't work"; it does exactly what I'd expect it to. Can you edit your question to indicate what you expected?
(In the first revision of this answer, these comments began with -1;
I've removed the -1s to avoid conflating this with a whole other argument about how to express criticism.)
These sorts of comments - which are unambiguous about the fact that there's a problem with the question and about what that problem is - almost certainly don't strike the tone that the staff would like us to strike, post-"welcoming" drive. Yours probably does strike that tone. And yet it seems to me that my alternatives are far more respectful to askers than your proposed comment is. I would certainly rather receive a comment in my style, that at least addresses me as an individual, than a boilerplate comment like yours.
Wouldn't you?
I've been told You is wrong.
Indeed. Usethou
for maximum respect.