Yesterday I was working on fairly large coding problem. I was trying to understand what was going on in a piece of code someone else had written, and it was more than a thousand lines of code in just the main file, with 5 included files. I was starting to get the hang of it by the end of the day, but didn’t quite have it nailed down.
Last night while I was sleeping I figured out the key issue.
This isn’t that uncommon for me, and I’ve read articles by other people extolling the virtues of coding in your dreams as well. I think there’s a lot of value in sleeping on a problem and letting your brain mull over it while you sleep.
This scenario can’t be unique to coders, but I’ve never heard any non-coders talk about it. Do detectives figure out whodunnit while they sleep? Do Engineers figure out why the bridge fell while they sleep? Do accountants figure out how to balance the books?
What do you figure out in your sleep?