This just makes sense, for more than programming
I started out in db development, but now primaily work with data anlysis. In both situations, I've found that an iterative approach pays off. Even those "wrong roads" that I went down while initially trying to put together a complex report or database may prove helpful at the end. At the beginning of each project, I create an archive file, and I save every useful "bad" version into it. I've often found that even if a particular formula doesn't work for the given application, it may be helpful later.