Today, I spent the whole day trying to solve what should have been, and turned out to be, a simple issue with javascript (I'm more comfortable in my php code). And for not the first time, I was only able to solve the problem after I had admitted defeat.
At one of my previous jobs, it was often the case that I'd spend hours or days working on something and getting no where, only to tell my boss I was unable to do it - then go back to my desk, and bang out a working version in far less time.
I'm not sure if it changes my mindset or what, but does this happen to anyone else? I feel like there is some kind of lesson to be learned from this all, but I haven't quite figured out what it is. Always be defeated? Never force a solution?