The following is a question I asked on SO: Boolean short-circuit not short-circuiting.
When I posted I omitted to specify one of the frameworks that are in use in the code. It turns out that the problem I posted about has a well understood solution for one specific framework.
However, I was not using that framework in that question and a discussion ensued. Ultimately, my problem was a routine oversight, which was pointed out in the selected Answer.
The question was down-voted (twice, at the time of this writing). In the discussion, it was mentioned that a question must provide compileable code.
I have two points I'd like to raise:
- Are OPs expected to post compileable code?
- Should the poster be penalized for omitting information, that save for the fact that such information would be valuable in an edge-case, he had no idea was relevant to the question?
Update After reading the discussion on this post as well as the discussion on the Question in question I'd like to add a few more words, and flesh out my position.
Thanks to the community input, I positively agree that the way the code that I presented in the original question could be improved. I also agree that my evaluation of what the problem was, was incorrect and mislead some people. By my own standards, I'd say my question was scraping the bottom of acceptable.
That said, this discussion is both illuminating and disappointing. I congratulate everyone here for championing the principle of exacting clear and rigorous questions. I also believe that without standards, SO, and all of SE-dom would lose it's usefulness.
Yet, while I apologize for not having saved everyone involved in answering the original question more time, I don't believe I have to apologize for the way the question was posted, nor for the question itself. For three reasons.
- Does a question have to lend itself to generalization? Only askers who have been able to reduce their real-life code should post a question?
- Corollary Not all questions are easy to research, especially when the problem is not clear.
- Certainly the onus of making a question as clear as possible is on the Asker, but I've personally answered many questions, much less clear than mine, with much less fuss. Isn't it ok, if the question stumps the Asker, for the question to stump potential Answerers? (Even when not all the facts are included, see point 1)
- Even though one particular critic wrote this about the accepted answer:
@Seebiscuit The fact that someone was able to blindly guess the problem given both incompletely and invalid information to go on doesn't mean that the question reproduces it's problem. It means someone guessed at the solution despite the fact that it doesn't reproduce the described problem. Those aren't the types of questions we want here on SO; people just blindly guessing based on woefully incomplete information. We want clear questions with clear, objectively correct answers.
I want to argue that the answer provided, was firstly, not a "blind guess" (I should ask Vidas Vasiliauskas, who answered the question, if he thinks his Answer was a blind guess), but it describes the exact reason I posted the question in the first place. Either there was something in c# that was stumping me, or I had an oversight. Vidas Vasiliauskas
caught the oversight.
I'm all for raising the bar. But I boo the notion that there are reasonable questions, that reasonable people can put forward reasonable solutions to, that get down-voted. We can make SO pristine, but sacrifice probably its most outstanding quality, and I believe the reason it was formed: its accessibility.