I'm a novice programmer and I occasionally come up with ideas that I think will be handy on future projects. Having an art background, I used to keep a sketchbook. I would go back through these sketchbooks use them to inform future projects.
Do you keep your scratch code from past projects to track how your past projects developed? Do you store that alongside the final product? Do you keep a "code sketchbook"? What is a good way of capturing past ideas and making them accessible?
I saw this thread, and I'm more interested in capturing those disjointed ideas and solutions that and problems that I come up with. I like the idea of the wiki, but I also like the idea of something that is easily executable in EMACS.