|
When I end up in a similar situation (albeit less "burned on coding" and more "brain still in overdrive from coding"), I grab my kindle. My girlfriend doesn't mind me reading at low brightness. When that doesn't help, I get up and do something explicitly passive, i.e. watching infotainment with headphones.
|
|
|
|
|
You need to break this habit. I go to bed at 21:00 and get up at 05:30. I am much more productive.
|
|
|
|
|
Some ideas:
- watch stars, constellations, moon etc (you might buy a telescope or even build one)
- study weather patterns and clouds by night
- study the animal kingdom at night.
- night photography (no success for me)
- redo thought experiments,
- train memory by reliving a past holiday (whatever) in as much detail as possible
|
|
|
|
|
Wireless headphones are a joy. I use mine for audiobooks, podcasts, and music. If I'm antsy enough to not want to lie in bed, tightly snuggled by hubby, I play Minecraft (very calming).
If you want to actually sleep, I recommend a great podcast called 'Boring Stories for Bedtime' by Sharon Handy.
Sweet dreams ... or not
|
|
|
|
|
|
Yoga, meditate, read some classic tomes?
Friends I have say that Mary Jane gummies ingested late in the evening help sleep. (This stuff is now legal in my neck of the woods).
|
|
|
|
|
I have to stop coding after about 9pm. If I continue after that, I am up much of the night and wasted the next day.
Outside of a dog, a book is a man's best friend; inside of a dog, it's too dark to read. -- Groucho Marx
|
|
|
|
|
Check with your doctor to make sure there isn't anything abnormal afoot.
Perhaps you should lean into your tendency and try biphasic sleeping ( [^] )
If you want to become a "traditionalist sleeper" stop using screens ~1 hr before bed, minimize your exposure to the blue light part of the spectrum, and meditate ~ 15 mins before going to sleep. If your head still insists on waking you up after 3-4 hrs, try doing some non-stimulating things like, gentle stretching, warm bath, meditation to see if you can get to sleep again.
People are different and this just might be your body's strong preference as to sleep. If you need to fill those strange quiet hours, consider taking up an art, like writing, drawing, painting, etc. it will encourage the non-logical side of your brain to come out an play.
|
|
|
|
|
- Meditate
- Read
- Watch movies with headphones
- Scroll social media until I get to the end of the Internet
My wife knits while doing the above.
I would practice playing the piano, except they complain of my pounding on the keys even though the sound is off.
|
|
|
|
|
You could start porting some games to run on your hardware projects.
E reader/backgammon.
Chess checkers etc
|
|
|
|
|
Final Fantasy I
Edit: Actually I could probably build an NES emulator on one.
Real programmers use butterflies
|
|
|
|
|
I was thinking much smaller😊
I am not surprised that you would add a few orders of magnitude.
You could also try writing a screen play or something along the lines of Halt and Catch Fire
|
|
|
|
|
I liked that show. It reminded me of when I was a kid. Also I completely identify with Cameron. What a great character.
Real programmers use butterflies
|
|
|
|
|
Exercise that makes you sweat at least a bit helps you sleep longer and better.
Or Netflix.
Or 10-hour long YouTube "videos" of falling rain might help. (Just audio with a black screen.) Make it quieter than you think. In the dead of night, everything seems louder. Works.
|
|
|
|
|
Been there done that - and it does not end well. In my case 10 years of 4 hour sleeps ended in hospital.
4 hours is _not_ normal. I'm not saying it's bad, just not normal. All the current research does indicate that it is also bad.
If you are sleeping 4 hours and always tired, you have a problem that needs addressing. Coding can be an obsession (burnt out or not) - solving the puzzle consumes the mind. Obsession is a form of angst that can cause the brain to wake up before it is fully rested.
In my case, I (mostly) solved the problem using the following;
1) Use the end of the day to 'unwind' - slow the brain down and quiet the conscious, forgo all drugs for this (particularly alcohol and tea/coffee).
2) Just prior to ending your work day consider one problem for the sub-conscious to work on. Then forget about it and go to step 1 (it is for sub conscious, not conscious mind).
3) Use all means possible to eliminate blue light during 'wind-down'. Close your dev system and physically relocate away from your work space (and leave your phone).
4) Using this regimen, after 12-14 hours work and 2-4 hrs wind-down, you should start to feel really tired. It may take a week or two to get in the zone.
Using this regimen I can assure 6-8 hours good sleep. Any time I let coding angst intrude it drops to 4-5. It has completely inverted my work schedule - now I get ~4 good hours work in before breakfast, ~4 good hours after breakfast and another ~4 generally solid but sometimes interrupted by life after lunch. By then I'm getting organized for the end of day 'un-wind'. No calls or work after dinner and if anyone asks me about work during that time, I'm unavailable and can't remember anyway.
Usually puts me in bed fast asleep ~9pm through 3-5am. If I wake up too early, I feel groggy and can't focus (burnt out). Basics, but often overlooked - make sure you are not too hot while asleep (most people are) and have a comfortable mattress.
Outside stimulants like caffeine or alcohol can screw this up for a week or more before I can get back in the zone.
Oh, and that sub-conscious problem; usually solved by the morning or at least moved along.
modified 2-Dec-21 10:01am.
|
|
|
|
|
Some latitude is to be expected when judging height (8)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Altitude ? don't know why
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
You are up tomorrow!
Does it help if I point out that ALTITUDE is an anagram of LATITUDE? The rest of it is just an anagram indicator.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I knew it was an anagram but thought it was too obvious for one of yours
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
It's a Monday, so I thought I'd start simple ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I was thinking of posting headroom as the answer
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Max? (8)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Stupid boy Pike
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
"Don't tell him Pike"
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
When I wrote my GFX library for IoT, I intended it to be cross platform, but due to the specs of most IoT devices being abysmal I haven't had a chance to use anything non-ESP32 since they just don't have RAM, program space or CPU to do anything significant.
However, I've been looking at shifting my focus away from the ESP32 to the ARM line of offerings for a number of reasons.
I want to take GFX with me, but I wasn't sure it would run on an ARM.
I finally fired up GFX on an ARM for the first time today. The only hitch in my getalong was that the STM32 folks did not implement the Arduino framework properly so I had to put a conditional compile into GFX so it will work with the broken ARM arduino layer.
That's small potatoes in the big scheme of things. In the end it works. It actually fired up and compiled, and ran which is huge considering the complexity of this codebase, and that this is the first time it has ever been tried on something other than a PC or ESP32.
I feel good about today. I'm on fire.
Real programmers use butterflies
|
|
|
|