52
Root
7y

Rant rant = new Rant
rant.isRant = false // !!!

I woke up this morning after not thinking about my code for a day, and realized i had a flaw in my validation design. I fixed it before opening my eyes.

It's kind of amazing how not thinking about a problem can help solve it. Even if you don't know it's there!

Comments
  • 8
    most solutions appear when you're looking away from them. subconscious mind generates creative solutions in many cases your conscious, analytical mind gets stuck.
  • 3
    Had a few instances where i mentally debugged my code in the shower, or on the toilet.
  • 1
    @ragnarr023 do you happen to have a telepathical connection to stack overflow :D
  • 2
    @cors only when I am having a seriously bad shit.

    I'll open up a "ask me shit you're struggling with (whilst I handle shit I'm struggling with)" QA session.
  • 1
    I tried this so many times. Lying in bed, half asleep; my moments of bliss.
  • 1
    Like, just barely waking and God() just speaks to you, like, here's the solution to your issue, now wakeywakey and enjoy.
Add Comment