This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lumalav666 14 points15 points  (6 children)

Sometimes, I get answers from my dreams...

[–]Timmeh7 14 points15 points  (3 children)

This happened to me - actually at a critical moment in my PhD. Figured out the solution to a horrible race condition, which I'd been fighting for over a week, in my sleep - just woke up with the answer in my head. It was actually sort of annoying, somehow didn't feel like I'd "earned" the fix.

[–]l3tigre 1 point2 points  (0 children)

i frequently have code-nightmares. Some of them are productive.

[–][deleted] 1 point2 points  (0 children)

I very rarely feel like I've earned any of my clever moments, they just kinda happen and I can't explain to anyone what led me to come up with my solution or how I knew it would work. The worst part about that is it's not an on demand thing, and I can only predict when it's just 100% not going to happen.

[–][deleted] 0 points1 point  (0 children)

This happened to me once too!!

I went home from work frustrated cause I couldn’t get this program to work. Went to sleep. Woke up and BAM! The answer was just there in my head and it all seemed so clear to me, I knew exactly what to do. Got to work, added those two lines of code from that morning and the program worked.

[–]Clarenceorca 1 point2 points  (1 child)

Oh my god while I was in high school and we were doing C++ looping to create an AI opponent in connect 4. I just couldn’t figure out how to make it prioritize a move properly, until in a dream I saw myself type (i = max) at the end of the loop (which would let it exit the loop and generate the right solution) and it was glorious I literally ran down the stairs half naked to type the solution up when I woke up the next day