Hacker News new | ask | show | jobs
by gcpwnd 2005 days ago
Yes context switching is a huge cognitive load. Abstractions enforce context switching.
2 comments

The primary motivating reason to have abstractions in the first place is to prevent context switching - i.e. you shouldn't have to think about networking code while you're writing business logic.
I’d say that’s a sign that either it’s the wrong abstraction, there’s implicit coupling (a distinct variant of the wrong abstraction), or both sides of the abstraction are in so much flux that the context switching is inevitable until one or both layers settle down.