Coding while asleep

I was working on making a tool to download conversations over biba. One night just before I realized I was too sleepy to continue coding, I wrote this(image below) and came back to it early next morning after waking up.

Capture

How I knew last night that I was too sleepy to code…

  • I kept thinking the red squiggly below the function name was a spell check indicator.
  • I actually made a spelling mistake repeating the ‘in’ in “exist in”.
  • After I hover on the function name, I realize that “not all code paths return a value”. And for the life of me I couldn’t figure out which code path is missing a return statement!

Leave a comment