Sometimes I'll encounter problems while coding, or sometimes out of simple interest for a question, I'll google for an answer, and most of the time I find that answer is here on stackoverflow.com.
If I can't find an answer, or if it's not enough to satisfy my curiosity, sometimes I expend my own effort to solve those questions. And after I've solved it, I'm happy to make my contribution to the community, and I post them as the Q&A style posts. For example:
How to find the minimum covariant type for best fit between two types?
It seems relatively easier to ask a question if I didn't already have a solution, and I can put what I have so far in the question body, such as:
Just when is a stackoverflow fair and sensible?
The problem to me is, if I have my own solution to my own question, then most of what I have so far becomes part of the solution. It's likely I have failed in making my contribution by asking a question to which I have an answer, for example:
How to calculate the digit products of the consecutive numbers efficiently?
So I'm wondering if there are some guidelines or good practices for Q&A style posts?
How do I do it better?