In many ways, that's exactly what StackOverflow is for. If you have a programming question which hasn't been asked, and doesn't have an obvious solution (and based on what kinds of questions get asked, it seems no question has an obvious solution for everybody), you should ask it.
Conversely, if there's a question asked and you have a good answer for it, you should post the answer so others can share your enlightenment. It's uncommon that you'll post the question and the answer at the same time (usually you'll ask the question, do some research, find a solution, then come back and post an answer) but there's nothing wrong with it.
As an added bonus, occasionally someone else will post a better solution than the one you found. That's a win-win.