Coding in my sleep
Nov. 3rd, 2010 11:49 amLast night,
viesti and I spent the evening together, her on her laptop playing Minecraft, I on mine working on Combo cards. Around 1AM, I started running into this really really annoying bug where my cards weren't painting to the screen. For an hour and a half, I dug into this, trying various things to figure out why the paint method wasn't being called.
I actually fell asleep in the middle of writing another debug statement and eventually transferred to my bed to really sleep.
However, that didn't stop me from debugging.
Towards the middle to end of my sleep cycle, I was dreaming about doing that debugging. In fact, I was having a vivid dream where I was fully aware that I was in a dream and was trying to work out several ideas to try when I woke up. It was nice using my "dream debugger" to actually *cause* the code to do whatever it was that I wanted it to do. And coding at the speed of thought is quite nice as well. The bizarre part is that I was fully aware that I was working on "dream hardware" and could not accept any results as real.
When I woke up this morning, I bounced *right* out of bed and immediately got to work trying some of the ideas I had dreamt about. I flew through test scenarios like a mad woman, having already coded them once in my dreams.
Alas, ultimately, I came upon the problem not because of the dream debugging, but rather because when I got stumped again, the answer came to me. I had actually missed a step somewhere and forgot to add cards to the screen.
That's what I get for coding to exhaustion.
But at least I got to experience dream debugging. That was totally awesome.
After fiddling with things a bit, the GUI is now more or less functional and I'll be moving on to making the back end stuff work.
Here's a pic:

This is actually live and not a mockup, so it's coming along!
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
I actually fell asleep in the middle of writing another debug statement and eventually transferred to my bed to really sleep.
However, that didn't stop me from debugging.
Towards the middle to end of my sleep cycle, I was dreaming about doing that debugging. In fact, I was having a vivid dream where I was fully aware that I was in a dream and was trying to work out several ideas to try when I woke up. It was nice using my "dream debugger" to actually *cause* the code to do whatever it was that I wanted it to do. And coding at the speed of thought is quite nice as well. The bizarre part is that I was fully aware that I was working on "dream hardware" and could not accept any results as real.
When I woke up this morning, I bounced *right* out of bed and immediately got to work trying some of the ideas I had dreamt about. I flew through test scenarios like a mad woman, having already coded them once in my dreams.
Alas, ultimately, I came upon the problem not because of the dream debugging, but rather because when I got stumped again, the answer came to me. I had actually missed a step somewhere and forgot to add cards to the screen.
That's what I get for coding to exhaustion.
But at least I got to experience dream debugging. That was totally awesome.
After fiddling with things a bit, the GUI is now more or less functional and I'll be moving on to making the back end stuff work.
Here's a pic:

This is actually live and not a mockup, so it's coming along!