On StackOverflow I regularly attend to questions where the answer is to take an entirely different approach to that currently attempted, such as:
- "Why is the File not found?" -> "For this use-case, don't use a File, use an URL. ...".
- "How to make an EXE of a Java GUI?" -> "Don't, deploy it using Java Web Start. ...".
- "How can I center the GUI on the screen?" -> "Don't, use
On these types of questions I scan though the suggested "Related" questions to see if it can easily be closed as a duplicate - usually to not see any immediately relevant links. For instance, the File related questions might throw up hits for other questions where the use-case actually needed a File, and it was resolved, or where the 'frequently wrong answers' offered failed to resolve the problem, with the OP vanishing. I suspect it is because the right 'search words' are not included in the title/text of the post, thereby weakening the relevance of the returned hits.
It would be nice to be able to write the Wrong Strategy Question/Right Strategy Answer in the form of a normal Q&A, complete with paragraphs etc., then simply provide a link in a comment.
Would there be any support for allowing such question+answers on either meta or (better, for the code formatting) SO itself? At the moment they would seem an 'odd fit' for either the SO or SE sites, likely to be closed/deleted.