topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 2:38 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Sleeping Solves Another Bug~! :D  (Read 7745 times)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Sleeping Solves Another Bug~! :D
« on: December 12, 2012, 11:50 PM »
I've been working on some new stuff, and have had a bit of a rough time as things were falling apart badly. So... when all else fails... Take a snooze!

I laid down for a while, envisioned the code in my head, and just rested.

A while later, I went back to the code, started walking through it, and lo and behold, I had the answer. :D

Anyone else ever do this? Step back. Chill. Meditate. Come back and solve a critical issue?
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #1 on: December 12, 2012, 11:54 PM »
Yep. Cryptic Answer. Examples go back to the 1700's : )
Yay Sleep!

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,294
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #2 on: December 13, 2012, 01:27 AM »
Anyone else ever do this? Step back. Chill. Meditate. Come back and solve a critical issue?

Not certain I'd call it meditation (dunno that I'd know how  :P), but otherwise that scenario is very familiar - has been a lifesaver at times.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #3 on: December 13, 2012, 03:38 AM »
I usually go for a walk rather than snooze, but it often does help taking a few steps back and letting your mind flow freely.
- carpe noctem

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #4 on: December 13, 2012, 04:13 AM »
+1 :up:

Been doing that on both software and hardware issues: Either get some sleep or make a long car-drive (used to drive an hour from work to home, solved a lot of issues during that hour, never had traffic issues, luckily, drove on a highway ;))

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #5 on: December 13, 2012, 05:30 AM »
The privy works best for me  ;)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #6 on: December 13, 2012, 05:49 AM »
The privy works best for me  ;)

Someone who truly gives a crap about their code~! ;D
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,646
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #7 on: December 13, 2012, 09:02 AM »
Anyone else ever do this? Step back. Chill. Meditate. Come back and solve a critical issue?

Yes, sleeping/sobering up seem to have equal success rates. ;)

Even back when I was a mechanic, I'd frequently sit back smoke a cigarette and let my mind drift when at an impasse. This strangely allowed answers to (seemingly) fall from the sky. In reality I think it just a case of forcing ones self to forget where they're at so that on reassessment you have the opportunity to spot what was being messed. It's a forest/trees cure.

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,857
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #8 on: December 13, 2012, 10:03 AM »
I usually go for a walk rather than snooze, but it often does help taking a few steps back and letting your mind flow freely.


+1! Waking almost always works the charm for me.

That and/or 20 minutes listening to Bach, Teleman, or Gregorian Chant.

Total brain reset.  :Thmbsup:

superboyac

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #9 on: December 13, 2012, 12:50 PM »
I usually go for a walk rather than snooze, but it often does help taking a few steps back and letting your mind flow freely.


+1! Waking almost always works the charm for me.

That and/or 20 minutes listening to Bach, Teleman, or Gregorian Chant.

Total brain reset.  :Thmbsup:
mmm...yes, speaking of which, this one tends to do the trick for me:

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,747
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #10 on: December 13, 2012, 04:54 PM »
I was having a hard time wrapping my head around something specific in JavaScript a year or two ago... I just couldn't understand how it worked (and now it's been so long since I did anything with JavaScript, I can't remember what it was called). I got discouraged and stopped working with JavaScript for a few months. I was complaining to someone about the thing I was having trouble understanding, and he asked me what it was, so I went to the book I had been reading so I could show it to him and as I read through it again it all clicked!

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • View Profile
    • Donate to Member
Re: Sleeping Solves Another Bug~! :D
« Reply #11 on: December 13, 2012, 06:07 PM »
Nothing new here - restart can be productive.
Well, such good results are the only thing that justifies going for smoke at work…