Today I went to Stack Overflow to see how to implement a state of the art WebSocket Server compatible with HTML5 WebSocket clients. I was interrested about how to do that either in Python or C++.
I was happy to find good answers on both subjects:
- https://stackoverflow.com/questions/3916217/standalone-c-or-c-websocket-server-library
- https://stackoverflow.com/questions/5839054/websocket-server-in-python
Both questions are giving a good starting point to find out how to implement WebSocket protocol using existing libraries. No need to reinvent the whell isn't it?
What is worrying me is that both questions have been closed with the following reason:
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
The answers to these questions are not opinionated neither spam. The trouble (and likely the reason these questions were closed) is that implementation of such features will logically use some existing library. That will be the natural move of any skilled professional.
As I read it, the questions ask for a way to solve a specific programming problem, thus the questions are specifically on topic and very useful... nevertheless they have been closed on the basis of a very broad close reason about pitfalls of referencing existing software libraries.
I agree that in some cases such questions can lead to pointless discussions of the "best library or tool" to perform some specific task. Yet it's still better than nothing. We can also see that the questions I pointed to did not raise much spam or opinion-based answers, but useful content.
Of course, the question can be rephrased to describe the problem (here "Implement a WebSocket server"), but it's so much easier to close the question instead, so that I believe rephrasing will be the exception instead of the rule.
It is especially annoying that such questions are closed, because it merely forbids to update answers (the existing answers can still be seen). Over a long time the existing answers will be outdated. Henceforth closing such questions basically promotes bad quality content.
I also wonder if that kind of question is off-topic to which other site of Stack Exchange it should be migrated? If it's off-topic on Stack Overflow it should be on-topic elsewhere? Right?
I suggest to give some bagde for rewording and reopening good questions poorly worded. Maybe a "Baywatch" badge for saving good questions from drowning.