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.
Comments:
Chris
Quote
2010-03-24 14:07:00
horace
Quote
2010-03-24 14:16:00
rip
Quote
2010-03-24 14:29:00
Conde Nostaw
Quote
2010-03-24 18:43:00
Daniel
Quote
2010-03-24 20:17:00
Brainsaw
Quote
2010-03-25 07:22:00
Add comment:
Possible Codes
Feature | Code |
Link | [url] www.example.com [/url] |
Bold | [b]bold text[/b] |
Quote | [quote]quoted text[/quote] |
Code | [code]source code[/code] |
Emoticons
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...