"TDD is another big help. I you have a failing test, that test holds the context of where you are. You can return to it after an interruption and continue to make that failing test pass."
related to testing-concept-reduction-in-cognitive-load