Like @disiplus, that happened to me for a long time.
During high school, college and afterwards, it was just easier to work at night and just stay up until very late. Also having a deadline around the corner gave me the right amount of stress to finally code the solution.
It’s not like I didn’t try to work during the day or wasn’t thinking of trying to solve the problem. I actually thought of it and worked out things in my head, I just had trouble sitting and coding it during the day. At night, very late until early in the morning I would just sit and dump it all out.
Side projects can still be like that.
At work, I’ve learned to manage it. I really enjoy the position I’m in. I work on a lot of projects, have a set of tasks that maybe fill half my day during the week but I can be pulled into meetings, called to fix something else, review code, or help other devs.
It’s can be a lot, but it’s working right now.
My advices for people who didn’t run for years like I was:
- starting low (500m or 2min) is the key. Better run a little than not
- increment a bit each time
- an Apple Watch (or other tracker) is awesome to set a goal and track progression during running. You can export health data on a PC and then do geek stuff with it