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:
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:
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:
So I'm wondering if there are some guidelines or good practices for Q&A style posts?
How do I do it better?