"Frustration is not an interruption of your process; frustration is the process."
I just finished reading "Big Magic" by Elizabeth Gilbert, it's a book about creativity; more specifically how to treat creativity and inspiration in your life. I'm indifferent about the book as a whole, but somewhere in the middle she said something that stood out to me that I believe can be applied to the coding process.
"The fun (the part where it doesn’t feel like work at all) is when you’re actually creating something wonderful, and everything’s going great, and everyone loves it, and you’re flying high. But such instants are rare. You don’t just get to leap from bright moment to bright moment. How you manage yourself between those bright moments, when things aren’t going so great, is a measure of how devoted you are to your vocation, and how equipped you are for the weird demands of creative living."
She goes on to say:
“Everything sucks, some of the time.” You just have to decide what sort of suckage you’re willing to deal with. So the question is not so much “What are you passionate about?” The question is “What are you passionate enough about that you can endure the most disagreeable aspects of the work?”
Just a little food for thought.