After reading through a meta question on splitting the site and my experience with a question where the user clearly put in effort and even posted a smallish example that exhibited the problem, but also clearly had significant misunderstandings about language fundamentals, I'm wondering again how to reconcile the two missions of SO.
SO is a help site. SO is an archive. It is both things. And in order to be either, it must be both. In order to be an archive, people have to be able to ask for help so there's something to archive. In order to be a help site, people can't be afraid to come here and ask questions.
I propose that a tag be created that requires a fairly high rep to apply. This tag would remove a question from search results and otherwise flag the question so as to avoid cluttering up the archive with questions that add no value, but wouldn't outright delete the question.
It might also be reasonable to allow you to search through all the questions, regardless of the tag. And perhaps people might also earn reduced reputation for answering such questions.
It just pains me to see people come with honest questions who are in bad courses with terrible instructors be basically shut out of the site by having their questions closed. We have the opportunity to be more welcoming, and help out the world in general by being a place where anybody can come with their question if they've put in the effort to meet the site guidelines.
There is some precedent here (pun intended). The appellate courts may be viewed as a forum for legal questions. For almost all legal questions of even marginal quality, the appellate courts give an answer. But they only publish the answers to interesting questions.
I think that allowing a wider range of questions will ultimately result in SO becoming a better archive as well.
for
loop or something equally simple yet requires a lot of explanation, since they haven't covered the basics. You can't really say "loop over the array and do X" to somebody who doesn't know what an array is or how to write a loop.