Sprout · A rough idea or first thought
Context switching
切From my notes on Software process
Switching from one task to another is never free. You have to put away what you were thinking about and load the next thing into your head: the code, the ticket, where you left off. That’s why context switching is closely tied to limiting work in progress: every extra item in progress is one more context to switch to.
The cost per project
Gerald Weinberg estimated the cost in Quality Software Management (1992). With every extra project a person works on, more of their time goes to switching between them:
With two projects, a fifth of the week is already lost. With five, three quarters of it goes to switching, and each project gets only 5%.
Attention residue
Even after the switch, part of your mind stays behind. The researcher Sophie Leroy called this attention residue: when you move on from an unfinished task, thoughts about it keep running and make you worse at the next one. It’s the same open loop as the Zeigarnik effect.
Interruptions
Not every switch is a choice. A message, a quick question, a meeting in the middle of the afternoon. Paul Graham describes this in his essay Maker’s Schedule, Manager’s Schedule: a manager’s day is cut into hours, so a meeting is just another slot. A maker needs long stretches to get into the work, and a single meeting can break up a whole afternoon.
What helps
- Limit work in progress: finish one thing before picking up the next.
- Swarm: let the team finish an item together, instead of everyone starting their own.
- Batch the small stuff: answer messages and do reviews at set moments in the day.
- Protect focus time: put meetings next to each other, so the rest of the day stays in long blocks.
In Scrum, the Sprint Goal helps too. It gives the whole team one focus for the sprint, so work that doesn’t serve it can wait.