You struggle with a feature or a bug, you think about it, you weigh the pros and cons for hours... because you don't want to start something that will set you back. You're tired, but you don't want to go to sleep until you've at least made a decision for tomorrow.
Go to sleep. Now.
Then you wake up knowing immediately what to do. You hardly believe it, because it was so hard to find before you sleep. And you do it. And it works. And you know that sleep was the key.
I've shared this before, but it seems relevant here:
Several years ago a Facebook recruiter invited me to interview with them. It mostly went well, except I bombed the leetcode algorithm quiz.
The next day, as I expected, they sent me a polite note thanking me for interviewing but they would be moving on with other candidates.
The morning after that, I woke up and before I opened my eyes I saw the complete solution on the back of my eyelids, about 20 lines of code.
I stepped through the code mentally and thought, "Yes! This will work!"
So I ran to my computer and typed the code in to test it. Other than one bug - this was old-school JavaScript and I'd forgotten one var statement, so there was an inadvertent global - it worked perfectly.
Good exercise also contributes to good sleep. I sleep like a log after a good bike ride or an evening out swing dancing, but if all I did was sit at my desk all day then it’s a lot more likely I’ll be tossing and turning or doom scrolling into the wee hours.
If I go near weed in any form, indica or sativa, I won't sleep for the entire night, guaranteed. It's not an enjoyable experience for me at all, by far my least favorite drug that I've tried.
Hiking is my go-to when I need to figure something out. I think walking also helps chew on complex problems, more so than more intense exercise like strength training and running (though that's also beneficial).
This is frustratingly accurate. I was just working on something, pulling 16+ hour days for days on end. Not because I had to, but really out of pure obsession.
The raw hours of work were certainly noticeable, but it was embarrassing how difficult tasks the night before suddenly became a breeze the next day.
Seems painful now, but in the blink of an eye they will sleep through the night and when you look back years later you'll wish you pick them up and rock them to sleep again.
What I have noticed is that often, what sleep or rest gives me isn't so much a new insight but just the gumption to make a decision or grind through what I know needs to be done.
Mathematician JE Littlewood was a big proponent of walking and shaving for ideas:
> “Illumination, which can happen in a fraction of a second, is the emergence of the creative idea into the conscious. This almost always occurs when the mind is in a state of relaxation, and engaged lightly with ordinary matters. Helmholtz's ideas usually came to him when he was walking in hilly country. There is a lot to be said for walking during rest periods, unpopular as the idea may be. Incidentally, the relaxed activity of shaving can be a fruitful source of minor ideas; I used to postpone it, when possible, till after a period of work.”
I also recommend walking, I leave shaving to the men to try, and would add that like many others the shower is my most happy place for ideas and hitting on the causes of difficult bugs.
The foundation of quantum physics being developed with plenty of hikes and walks outside is almost a science meme. These researchers took a lot of very productive breaks.
I once solved a customers problem, and understood the problem of my broken washing machine during one short shower before going to bed. Best shower ever.
I design board games and almost all of my ideas come while walking or driving. Sometimes we just need to give our brain a minimal task to occupy it and then we can more easily get into flow. This is also the same result of the Ballmer Peak / 1 Beer Buzz method. [https://xkcd.com/323/]
So much this. As I've gotten older, instead of working half the night on a difficult end-of-day problem that I'm stuck on, I just set it aside at the end of the day and by the time I start back up in the morning, I've got a good idea how to solve it.
Does it mean THAT problem gets solved later? Sometimes, but often not. And more importantly, I'm maintaining a pace that's SUSTAINABLE. I can crank on hard problems almost constantly, but I leave myself some space so I don't get burned out.
Some have pain and/or insomnia waking them up at night with the inability to get back to sleep quickly or at all, and some have pain/injuries that make exercise less fun.
Telling us to sleep and exercise is like telling homeless and starving people to get off the streets, find a job, eat a good dinner, and buy a house. It sounds nice, and we’ll do our best, but the world you live in is different, and you don’t understand.
True, but as someone with a pain condition... Most throwaway suggestions won't help out. People always try to help, but rarely can. That's fine. Take the kindness, discard the advice.
But because I've struggled with this thing for decades, I probably do have enough tools to find my own way. And if I've run out, it means I'm about to burnout and need to find a way to restore ASAP.
Telling someone who is victim not to be such a victim is... Nothing but being a dick. They're hurting. There's better ways to talk to people. That people don't think of them, is kinda how they end up being a victim in the first place. They fall through the cracks, and that makes them more vulnerable.
Your sentence did not address every possible marginalized group, and is therefore willfully disregarding their situation.
Your swearing is offensive to someone reading your post. Your misuse of grammer as well. What about the people who can't read your post because they are blind, have dyslexia, don't have access to the Internet, etc.? How dare you!
Did you consider the viewpoint of every possible person who could have read your post before you submitted it? Of course not, because that's impossible, and would be an insane request to make.
How many times has this happened to me?
You struggle with a feature or a bug, you think about it, you weigh the pros and cons for hours... because you don't want to start something that will set you back. You're tired, but you don't want to go to sleep until you've at least made a decision for tomorrow.
Go to sleep. Now.
Then you wake up knowing immediately what to do. You hardly believe it, because it was so hard to find before you sleep. And you do it. And it works. And you know that sleep was the key.