What you're asking is one of the fundamental, but unanswered, questions of the Stack Overflow model, because there are so many ways to argue this particular cat, for example:
- Asking for
suggestions that I can try
(language from the SO question being discussed) invites unfocused and opinionated answers, which are of course proscribed here. Yet SO is entirely about answering programming questions, and all questions will involve some aspect of variability. - If the answerquestion doesn't provide code, that precludes answerers from making suggestions relevant to the asker's circumstances, and thus invites overly vague answers - which are again proscribed. But if code is supplied in the question, that encourages answers that are "too focused" and lacking explanation - exactly the type you're concerned about.
Essentially there's no hard and fast rule for what's "good" or "on-topic" here, because there cannot be; different contributors will fall in different areas of a continuum. For example, based on the above points, one person could honestly believe that the question being discussed is a perfectly good one; while another could equally honestly believe that it's off-topic.
In lieu of a definitive answer to the difficult question I outlined in the first paragraph, upvotes, downvotes and comments are the mechanisms that have been implemented to allow individual contributors to express their particular opinion on content quality. And I personally think they're about as fit for purpose as we can get.