Subconscious Bugfixing

Posted on:March 24 2010

Updated to a new version of a library and everything worked fine. Well, except for this tiny little detail. Started debugger to fix it. Debugged strange, complicated code with foreign language comments and cross-platform #defines clattered over the whole library, stepped through at least 200 files. No luck. Bug still there, no idea why. Read forum posts with similar problems. Studied the change log of the library. Nothing. Again, debugging. Again amazed by the amount of code my data gets pushed trough. Giving up, going to sleep.

Next day: an idea. What if I put this flag into that function? Actually, I have no idea why I wanted to try this but it's better than giving up. Compiled. Started the app. Bug fixed.

This happened quite some times now for me. It seems that somehow sometimes my subconscious mind solves programming problems for me during my sleep, and it tells me what to do, but not why. :) But I better don't think in detail about this.


This happens to me quite a lot too.

The moral of the story: If you're having trouble debugging some code: go to sleep!!; Staying up and staring at it doesn't work anywhere near as good :-D.

The other flipside to this is having a dream that you SOLVED it but you don't remember how; those really suck...
2010-03-24 14:07:00

happens to me too quite often. :)
2010-03-24 14:16:00

It's a common thing regarding creativity, read e.g. Csikszentmihalyi to learn more about this. Sometimes, the solution to a problems comes weeks later ...
2010-03-24 14:29:00

Happened to me recently.
Conde Nostaw
2010-03-24 18:43:00

Oh my god! Isn´t only me ? for 20 years I thought I was special or something
2010-03-24 20:17:00

Lol ... I guess this happens to everyone. The point is to get your mind off the problem and start with a new approach. IIRC the "guru meditation" error of the Amiga OS ment (during it's development) that the programmers had to do something else if they weren't able to fix the bug in a certain amount of time and go back to the bug with a fresh mind.

Of course this does also happen to me from time to time ;)
2010-03-25 07:22:00

Add comment:

Posted by:

Enter the missing letter in: "Internation?l"




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]