The idea being, it'll be much easier to get back into the groove the next day if you aren't confronted with the proverbial empty screen or blank sheet of paper the minute you walk in the door.
After you spend 30 minutes wrapping up the work from yesterday, you will already be in the zone, and it'll be easier to move ahead to the next big thing on your list.
"The best way is always to stop when you are going good and when you know what will happen next. If you do that every day … you will never be stuck. Always stop while you are going good and don’t think about it or worry about it until you start to write the next day. That way your subconscious will work on it all the time. But if you think about it consciously or worry about it you will kill it and your brain will be tired before you start."
I often create fun little mini-projects for myself to do and store them for later. I find that completing a small and fun project motivates me to work on whatever actual task I should be working on.
I think of it as leaving work "hooks" for myself to pull me into work the next day. Work hooks are small in scope, and satisfying to accomplish. The next day, not only do I know exactly what I'm going to do, I'm looking forward to it.
...but I know there are the opposite kind o people, like fellow programmers that love debugging but are just "stuck" if they have to start from scratch (I'm the opposite, I hate debugging and working on projects started by other people, but I'm incredibly productive at starting from a blank whiteboard or imagining things from nothing)
Next day, you'll be sucked right back in because of that damn test failing.
For me, it's also a good way to keep habitually doing TDD.
When I start from neutral, whether at start-of-day or after finishing a task, I check off what's done, then review the list to find a ripe task to launch into.
It would probably be even smarter of me to take 20 seconds to figure out exactly the right set of Emacs tabs/frames to keep open alongside them, so when it was time to start up again, I'd get sucked right in.