This question already has an answer here:
- Is “Don't do it” a valid answer? 10 answers
What should be the appropriate reaction when someone ask for help, but the question shows major flaws in the code or design? I have the feeling that just "answering" is like helping them to go further in the wrong direction.
Here is a concrete example: why this SELECT * FROM database wont work?
The OP asked about a "SELECT that don't work". The approved answer solved the issue. But, as someone noticed in a comment the code has severe security implications. And there is several like that every days.
In order to provide an helpful, clearly identifiable, and appropriate/polite comment, is there a "repository" of standard comments for these cases? If not, we should think of it.