One of the great things about Agile development is the concept of pair programming.
Every so often this is made glaringly apparent to me when I sit looking at some code with a blank expression on my face and time slips away.
Sometimes you can be hypnotised by code and your brain goes round and round in circles.
So, thinking like an Agile developer, I call over a friend to look over the code with me. As I sit and explain the problem, as if by magic, the answer begins to crystalise before me. And my friend has done almost nothing!
The simple process of explaining and discussing a problem with someone often brings about the solution.
Within 10 minutes, my code problem of two days was solved with a couple of lines of code and an exception handler!
I just wish I could have those two days of my life back!!!