Stephen King’s book, On Writing is great. In it, he talks about how he can spend months writing a book only to see the story hit a dead end. He throws the whole book out.
I feel that way about some recent work I’ve been doing on Click. Sometimes you take a path and find out it doesn’t lead anywhere. Part of being a programmer. When you’re a beginner, you want to keep everything. When you’re intermediate, you throw out other peoples’ work. When you’re advanced, you throw out most of your own work!
I always know when it’s happening too. I get this sick feeling inside me that I’m going the wrong direction. I ignore it and forge ahead until I absolutely hit the brick wall at full speed. And that seems to be the lesson I keep repeating.