I found this comic at Piled Higher and Deeper and it's so true for so many times that I've thought about coding something for hours on end and then had it all blow out of my head when I sat at the computer.