I'm not sure why but i just flat out work better at night when everyone is asleep, pretty mutch all of the "last modified" time on my project files is from 10 pm to 3 am
no distractions...
one metaphor i heard is, holding a program in your head is like building a house of cards, every time a phone rings or something breaks your concentration, you have to rebuild the house
This isn't my experience. I'm way more focused in the morning and then it's all downhill after lunch. By the time it's the evening I have zero motivation to do any code.
Very much the same for me. I don't enjoy getting up early but my brain works best if I get to the office at 7ish for some reason. After lunch I basically roll down hill. I seldomly feel any will do do any coding after having spent 8h doing just that
I think some of it is the mental load expectation to go back to a difficult process. I find using genAI to start the task allows the load to come more progressively.