GM Do you ever dream about code? It seems to happen sometimes when I'm working through building logic for something. I end up dreaming about it and sometimes even end up figuring out the best method forward 😳

Replies (3)

jared's avatar
jared 1 year ago
Yes i solved a problem this way. I was trying to figure out how to generate a password that would always pass complexity requirements without reducing the entropy. I woke up that night with the simple solution immediately top of mind… just a loop that generates a random password, then tests it for complexity. If it doesn’t meet complexity requirements, loop again. If complexity test succeeds, return that as the generated password. (And a max loop count to avoid infinite loop conditions, of course.)
Default avatar
nicodemus 1 year ago
YES. But not limited to code, but problems in general. Have been doing this (unintentionally) since I was a child - like a semi lucid state. It kinda sucks cause I sleep like shit. When I’ve asked others if they’ve ever done this, I get responses like “do you levitate, too?”