Article talks about context switching at the task level but it also happens at the code level in codebases with long inheritance hierarchies or responder chains, because then you keep swapping the code that's on display within your window or screen.
Anyway, I was hoping to find a study that supports the idea that context-switching does negatively affect productivity, but there's none. I feel like someone must have studied that a long time ago. Does anyone know any references?