I've tagged this as a feature request, but I'm not sure if there is already an accepted way to do this.
I often find solutions to problems which I record somewhere and then later lose.
Simple example: I may have a few C files that I want to build either as an executable or shared library. I may link in some libraries and header files along with a list of optimization flags. It's too simple to bother with a makefile. I might record this in a notebook with some notes on what the flags do and the differences between making an executable or shared library. It's more likely that I will put this in a comment at the top of the main C file. Then I can edit it as needed or copy/paste when I have another similar project. When I take notes, I can be fairly certain within six months, I'll never find those notes again. If I put it in a file, it's more likely I'll be able to find it, but after a few years, there's a good chance I'll forget that file even exists.
More significant example where I've answered my own question, and I would like to record it so that I can find it anytime, anywhere, forever. Suppose, hypothetically, I want to have some basic understanding of the method resolution order in Python 3. Maybe I can't find any documentation. Maybe there's too much documentation, or it's too abstract and there are no examples. In any case, I write a little test program that demonstrates how the MRO works in the few cases I actually care about. I put in some comments with an explanation and links to any documentation. Then I file it away for future reference.
Now the biggest problem is if I change jobs and that test code which neatly explains exactly what I want to know is permanently lost. In fact, since this has happened to me a few times, I no longer even bother trying to be rigorous about it. I just redo the test every time it comes up.
The regular Stack Overflow forum is obviously not the right place for this since I already know what I need to know, and the content may be very specific or simply for my own convenience rather than adding to the body of programming knowledge. The new documentation feature does not make sense either. I'm not interested in spending a lot of time trying to explain something I barely understand myself. The goal is to get a working understanding, make a note of it for future reference, and move on to the real task. Nevertheless, now that SO is the place we all go to get programming related answers, it seems this would be the right place for this type of content.
I would like to have the option for my notes and experiments to be either public or private. I usually wouldn't mind others either commenting or editing my errors.