On multiple occasions, I have begun to compose an answer to a question, and have put a great deal of time and effort into constructing diagrams, and making graphs, only to discover that, by the time I am actually ready to submit my answer, the question has been closed by a moderator.
My usual process is to first convince myself that there is a clear thing that the OP wants, then to research the problem, in case there already exists a solution on Stack Overflow, and then, in case I do not find one, to begin working on a solution and a relevant explanation. However, my ideas of what constitutes a clear question, or what questions are sufficiently covered by answers to other questions are not universal, and sometimes a moderator has a different conclusion about whether or not a question is clear and/or solved.
Most recently, I have spent at least 2 hours constructing an answer to this question. The question seemed clear enough to me, and seemed to ask a sufficiently different thing from this question and also this question. Since there is not some objective "duplicateness" metric out there, I can only judge for myself. Having spent 2 hours composing an answer, I have returned to discover that it has been closed. Asking that it be reopened got a response that I, essentially, do not have standing.
This particular example is mostly irrelevant. The point is that this has happened to me more than once, and I have spent a great deal of time answering open questions, only to discover that in the meantime they have been closed. This is incredibly frustrating, and causes me to feel as though my time spent answering questions on SO is wasted.
What am I doing wrong here? How can I better focus my time? Does anybody else experience this?