Pillow Epiphanies are always the best.

I hate going to bed with bugs in my code. It has always bothered me so much. So I give up on debugging this off-by-one bug just before my last update, resolved myself to go to bed, brushed my teeth, turned out the lights, got in bed, and sat there for 5 minutes fuming that I had that bug.

Thankfully, a stroke of genius occured and I bolted out of bed, solved the problem, and now the function seems to work perfectly (at least with my test data). I love when that happens.

2 thoughts on “Pillow Epiphanies are always the best.

  1. Don’t ya love that? If i get a problem which is taking too long, and i realize that it’s probably something stupid, i usually take a break, walk around, do something else for a while, and come back to it. Sometimes just looking at ‘it’ from another angle, or explaining the process to someone, straightens my head.


    1. Yeah, it is one of the best ways to solve problems. It takes a bit longer (because of the struggle), but the feeling you get when the solution ‘strikes’, man…. That can’t be beat.

Leave a Reply