IMO, one thing that'd help would be requiring more close/delete votes for questions with lots of upvotes (and lots of heavily upvoted answers) like this one had.
That said, the question - "Of course the Unsafe class is undocumented, but how can I use it in a real world scenario" - is pretty much the definition of "too broad".
That said, I voted to undelete and reopen, which appears to have succeeded.
The trouble is, the question is completely backwards. "I have this solution, what problems can I solve with it?" is not something a human being generally asks.
For every answer to this question, SO would be better served with a question asking "How does [Java internal or widely used library class] accomplish [thing that seems impossible in Java]" for which the answer is "It uses sun.misc.Unsafe in [this way]".
Yes, the information on this page is useful, but it's not stack overflowish.
Still, seems crazy to close it if more sensible versions of the question don't exist.
> "I have this solution, what problems can I solve with it?" is not something a human being generally asks.
Either you're being sarcastic, or you have no familiarity with the history of science.
The rest of your answer shows another aspect of what's wrong with Stack Overflow: zealous mods who get an idea of the perfect question into their heads, and then who go out to purge anything that doesn't conform, regardless of whether others find it (and its response) useful or interesting.
We're not talking about scientific discovery, we're talking about programmers typing questions into google. If you start from 'I want to use sun.misc.Unsafe but I don't know what for - let's see what Google comes up with' you are clearly up to no good.
This question is useful as a place for blogposts to link to, not as a primary answer to a question you might Google. So it's 'wrong' for stackoverflow in that sense. But no, I'm not agreeing that mods should have closed it, and I didn't say it should have been purged from SO. Luckily, it hasn't been, so we can stop worrying.
> If you start from 'I want to use sun.misc.Unsafe but I don't know what for - let's see what Google comes up with' you are clearly up to no good.
I completely disagree. If you are a new programmer who knows nothing about a certain topic/keyword/etc, googling "what would I use <x> for" is not only not being "up to no good", it's just plain common sense and curiosity. How else might one learn about entirely new things?
I highly doubt anyone starts with "oh hay, I want to use sun.misc.Unsafe". More like "hmm, I think I need to use sun.misc.Unsafe, but I'm not sure if that's the right call. Since this is an uncommon API, it's going to take a bunch of research, which will be a waste of time if I don't need to use it. Let me look up the common applications and see if they pattern-match with the stuff I'm trying to do."
I really actually love finding questions like that on SO. Sometimes the only way you learn how to do something better is through spontaneous example, because it's just not intuitive or inline with the current flow of things.
Maybe they would be better categorized into some group that is more appropriate, but then you lose the possibility of someone within that knowledge domain being able to answer the question appropriately.
Those questions run right alongside reading documentation for fun.
I suppose an overhaul to the infrastructure of question answering could help solve this problem - like questions have a maturity cycle / process in which they are developed into a more refined / edited sorts of comprehensive documentation, or even a better 'smarter' way of linking clusters of question together, or a way of moderating the authoritative direction of a question (rather than delete or replace, show a progression of modifications so people can learn what are model questions and what are less useful kinds).
Getting people to stop asking kinds of questions will never work, because they ask those questions precisely because they have not been trained in any sorts of formal internet etiquette. If you want to prevent the community from collapsing in on itself, I think the best solution is to modify the flow and connectivity of questions, so that they are intelligently inter-related, rather than relying on a sort of competitive singular universal form.
What a horrible reason for deciding a question is bad. If you are simply exploring the java library and see something you don't understand it is perfectly valid to ask why the hell something exists.
Also you give no reasons as to why your preferred way of asking questions is superior other than stating as a fact that "SO would be better served" by it.
"I have this solution, what problems can I solve with it?" is not something a human being generally asks.
That is an extremely good and useful question. It is called the bottom up approach. The fact that it might or might not be asked generally, has nothing to do with what we should do the times it is asked.
reminds me of accurate wikipedia articles closing or being removed because wikipedia was trying to be an encyclopedia, instead of the first source for information on anything and everything you want to know about
This is the crux of the problem. You have a mod culture of mechanistic law enforcement and an apparent passion for punishing technical rule breaking.
The true rule should be: Is this question useful to people? Will other experts be able to provide useful back?
The rule most in need of context-sensitive, question-specific interpretation is the closing of opinion based questions. The number of useful, highly-upvoted questions closed for this reason is the evidence that something needs to change.
> The true rule should be: Is this question useful to people? Will other experts be able to provide useful back?
Exactly, and it's my understanding that this is very explicitly not the rule - moderators do not care if something is useful, they care only if it "fits the guidelines" - actually guidelines is not the right word, laws would be more accurate.
I would disagree with it being called 'laws', because in the general sense laws can be disobeyed on occasion, and regularily are (extremely minor traffic laws, such as using the horn while stopped, anti-tailgating laws, etc. are routinely broken here in the UK -- I don't condone it, but it does happen quite a lot). In some cases police have the discretion to ignore offences of some extremely minor laws in favour of using that time instead to catch proper criminals. Hence to me at least, that does not convey the right mannerisms.
Perhaps 'sacrosanct law' would be a better alternative? :D
I like the 'exponential threshold' idea ... if for nothing more than the new sport it would create. Geeks would have to convince a LOT of people in order to close certain questions.
It might even introduce new terminology: "The chances that this question will stay open forever are approaching infinity..."
That said, the question - "Of course the Unsafe class is undocumented, but how can I use it in a real world scenario" - is pretty much the definition of "too broad".
That said, I voted to undelete and reopen, which appears to have succeeded.