Jeff Atwood
The most classical reference I can think of is a blog post written by one of the two cofounders of Stack Overflow, Jeff Atwood, in which he states :
To be crystal clear, it is not merely OK to ask and answer your own question, it is explicitly encouraged.
Here is a Meta Stack Exchange answer by Jeff conveying the same message once more :
Absolutely, that is one of the design goals for the site: to be a frictionless technical mini-blog where you get reputation for your hard work.
Joel Spolsky
The other cofounder, Joel Spolsky, has also written a blog post on the subject :
Since Stack Overflow launched, we’ve been trying to explain that it’s not just a Q&A platform: it’s also a place where you can publish things that you’ve learned: recipes, FAQs, HOWTOs, walkthroughs, and even bits of product documentation, as long as you format it as a question and answer.
And Joel too has written a Meta Stack Exchange answer, addressing what is sometimes referred to as "trying to farm reputation" :
1
The issue of reputation, and your assumption that there is something wrong with this question because it is an attempt to "farm reputation", is insufficient proof that there is a problem with the question or the answer. Au contraire, if something earns reputation on Stack Overflow, you should assume that's because we want that thing to happen.
Former Stack Exchange staff Shog9
Self-answered questions are sometimes referred to as Q&A-style.
Here is an example of such a Q&A, on the exact topic treated here :
So we decided to bolt [the Q&A-style] right onto the Ask page.
1
I wholeheartedly recommend reading Joel's answer in its entirety.