If I feel I'm not "done" with a programming task at the end of my work day, I leave myself detailed notes on what to do the next morning. Like: the next ~3 things I think I am going to need to do (update function X, run the tests, investigate function Y if the tests fail, etc). I've attached this morning's notes-to-myself.
Basically this lets me just "follow orders" at the start of my work day and ease my brain back into a place where I can start thinking at 100%
@darius did you write this on the side of your garage