Imagine someone asks a typical gimme the codez question with no care or research or explanation. Just "how do I [common thing] in [language]?" And you happen to know that there's a pretty good question that has accumulated good answers over the years that answers this poor question.
There's no doubt the poor question should be closed. One argument is that it should be closed for not showing a minimal understanding, it can't be answered as-is, and the user should be taught that this isn't acceptable asking here on the SE network.
Another argument is that if we close it as a dupe right away, the asker will get what they want and that will make them like the site. Also there will be no effort put into editing the question into shape, reopening it etc. However I feel that some people worry this is rewarding bad behaviour.
I often see both such close votes on crummy questions. Do we have a consensus on which to use?