I like to think that when I write code that I am working on a piece of software that I created, but that is in fact the opposite. I write code that is an idea that I have and I use it in the future, but I write it in a way that is not part of the flow of my mind or my brain.
The point is that our minds are very powerful, and our minds are very complex. They have millions of little parts that work together to form whole thoughts and actions. Some of these parts are subconscious and some are conscious. We are not consciously aware of all of them, but the fact that we are part of our minds means that we can affect them and even control the results.