There is an intrinsic flaw in the SO, whereby closed questions are subject to being deleted because the available answers are of poor quality.
Suggestion:
Question cannot be subject to being deleted after it has been closed. Instead, the answer should be first re-opened for at least 7 days before it can be deleted. This would allow enough time for community to suggest alternative answers and prevent people from deleting the question simply because the answers are bad.
Case example:
The case that I will use as an example is the following question: PDO support for multiple queries (PDO_MYSQL, PDO_MYSQLND).
I have suggested re-opening the question in SO chat because the question itself is valid (it covers a use case of PDO that's not articulated in the documentation) and the answer to the question is of poor quality. Furthermore, the question has received a significant number of views, meaning that there was a number of people researching the issue, some of which might have suggested better solutions.
However, instead the question has been suggested to be deleted because "the answer that was given is completely retarded and actively harmful".
10:19 AM Gajus Kuizinas
I don't believe this should be closed with the up to date SOF rules? https://stackoverflow.com/questions/6346674/pdo-support-for-multiple-queries-pdo-mysql-pdo-mysqlnd
10:22 AM tereško
you know why it was closed, @GajusKuizinas ?! Because the answer that was given is completely retarded and actively harmful
10:23 AM Gajus Kuizinas
@tereško Sure, now we know it. This is not clear (was not clear) from anywhere in the docs at the time.
10:23 AM Second Rikudo
@tereško Oh, to preform multiple queries.
10:23 AM Gajus Kuizinas
This can be demonstrated from the number of views.
10:23 AM tereško
@GajusKuizinas which would make it a good reason for deletion because it spreads BAD CODE
10:26 AM Second Rikudo
@GajusKuizinas The answer is crap. Having more views only makes it worse.
10:52 AM Gajus Kuizinas
You are suggesting to delete a closed question because the answer is not great. That makes a lot of sense.
10:53 AM Second Rikudo Second Rikudo
@GajusKuizinas We are suggesting to delete a closed questions because the only answer spread bad and harmful code. Yes.
10:53 AM Gajus Kuizinas
@SecondRikudo Because no one can leave another answer. The question is closed.
10:55 AM Second Rikudo
@GajusKuizinas There really isn't a very useful answer to this question. What do you want us to tell you? "You shouldn't have two queries at the same time" anyway?
10:57 AM Gajus Kuizinas
@SecondRikudo You are not in position to tell what PDO should or should not allow. Restricting access to a resource describing PDO behaviour is not going to alter what PDO can do. Instead, you should focus on meaningful answer suggesting the solution and warning about dangers.
10:59 AM Second Rikudo
The fact that you can do something doesn't mean you should do it. Multiple SQL statements is most certainly and completely objectively, a bad practice. Regardless of how you try to use it.
The fact that the answer simply tells you "Oh, just don't use prepared statements or use emulated prepared statements" doesn't really help your case here.
Don't get us wrong, deletion is a tool to prevent the spread of crap, which, in this case, is the crappy answer.
We cannot delete the answer because it's not negatively voted, and the question doesn't offer much salvageable merit too. So we decided to vote to delete it.
You can go to Meta Stack Overflow and present your case there, but I doubt you'll make much of a difference.
In this particular case, the question covers a feature of the http://php.net/pdo that is there by design. Risk assessment should be left to the individual developers and not to a group of members from an arbitrary (nonetheless, influential) community.