DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Sleeping Solves Another Bug~! :D  (Read 11,157 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Sleeping Solves Another Bug~! :D
« on: December 13, 2012, 05:50 AM »
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

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Re: Sleeping Solves Another Bug~! :D
« Reply #1 on: December 13, 2012, 05:54 AM »
Yep. Cryptic Answer. Examples go back to the 1700's : )
Yay Sleep!
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,294
Re: Sleeping Solves Another Bug~! :D
« Reply #2 on: December 13, 2012, 07: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.
Make a good day ... barn

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Sleeping Solves Another Bug~! :D
« Reply #3 on: December 13, 2012, 09: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,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Sleeping Solves Another Bug~! :D
« Reply #4 on: December 13, 2012, 10: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 ;))
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: Sleeping Solves Another Bug~! :D
« Reply #5 on: December 13, 2012, 11:30 AM »
The privy works best for me  ;)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Sleeping Solves Another Bug~! :D
« Reply #6 on: December 13, 2012, 11: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,652
    • Cody Award
    • Participated in NANY Challenge Five Times
Re: Sleeping Solves Another Bug~! :D
« Reply #7 on: December 13, 2012, 03:02 PM »
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,861
Re: Sleeping Solves Another Bug~! :D
« Reply #8 on: December 13, 2012, 04:03 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:

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: Sleeping Solves Another Bug~! :D
« Reply #9 on: December 13, 2012, 06: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
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Sleeping Solves Another Bug~! :D
« Reply #10 on: December 13, 2012, 10: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
    • Participated in NANY Challenge Four Times
Re: Sleeping Solves Another Bug~! :D
« Reply #11 on: December 14, 2012, 12:07 AM »
Nothing new here - restart can be productive.
Well, such good results are the only thing that justifies going for smoke at work…
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

Original address: https://www.donationcoder.com/forum/index.php?topic=33266.0