I always include some background info in questions I ask. I've seen many questions on here where that hasn't been done, and I see comments along the lines of:
'Why are you trying to do his? Perhaps if you posted some details about the problem you are attempting to solve, then the Community could find a workaround for you'
Seems reasonable enough. I ask questions on here because I'm not an expert - I can't think of every possible approach to answering the question, at least not at this level of expertise. So providing background can help everyone else think laterally on the question and potentially discover a work-around that achieves the same end, only via a different route than the OP had envisaged.
However I'm beginning to question that thought. On a recent question I was asking for something very specific but included the situation, which resulted in a whole train of comments regarding the situation, and replies by me explaining it in more detail. But none of that helped to answer the question itself. I feel the whole situation would've been much clearer if I'd just left out the background info.
So what I want to know is: is a question of the form 'How do I do ...' with no explanation of why you want to do that acceptable?
- On the one hand, SO is a database of knowledge, sometimes a simple 'No that's not possible for these reasons...' would suffice as an answer.
- On the other hand, perhaps background is necessary to open up other avenues, or simply provide more key-words for a site search to draw on (what's the point of a database if you can't find anything on it because the questions are too concise).
And can you ever be sure that your question is niche enough that you've come up with the only possible approach to solving it and you just need to know if it's feasible or not?
In my example I think I did, but how can I be sure before posting?
Update RE. Possible duplicate
I think this question, certainly in taking the perspective of the OP providing info (as opposed to the Answerers requesting it), is slightly nuanced and different from the proposed duplicate. Those questions address the obvious need for context in so called XY problems, I'm really interested in when you can avoid that. Specifically
- Is it right to omit context in order to streamline a question-answer process; to avoid people asking for expansion of irrelevant context when none is needed
- If so, how do you determine when you have a question that doesn't require context
- And is it useful to have such narrow solution-based questions that, if an implementation of that solution does not exist, instead of exploring other paths, the question is answered as 'No, that's not possible because...'
- The justification for that sort of question being that it clearly guides users on SO away from that line of questioning, whereas a convoluted
Y
toX
and back toY
question would be much more difficult to follow.
- The justification for that sort of question being that it clearly guides users on SO away from that line of questioning, whereas a convoluted
I'm not satisfied with the answers to the proposed duplicates as I don't think they address these nuances.
X
from OP'sY
, thinking it will be necessary, but instead fog up the question. IndeedY
may be the correct route, and the user only requires implementation to find a solution. In fact, if it's the case thatY
is the most obvious approach to tackling the problem, then I'd argue you shouldn't offer context, as this will make the question less clear to other users searching SO. Objectively deciding what the most obvious approach is, would be tricky.X
would indeed be theY
that you first proposed seems like something to avoid.