I often see questions such as this:
Hey my code isn't working. It's supposed to do XY but I can't figure out why it doesn't work. Here is my code:
{ insert 300 lines of code here }
I'd like to help these kind of people with their problems, but it just isn't economical for answerers to sift through 300 lines of code to try to deduce the problem, and it doesn't teach the asker how to debug their code.
Thus, usually these questions go unanswered.
Is downvoting such a question appropriate? What about moderator flags to place the question "On Hold"?
What kind of comment is helpful in this situation to encourage the user to improve their question? I don't even know where to start in explaining to them why this is a terrible question.