Any discussion of cognitive load in programming needs to include awareness of this book:
The Programmer's Brain: What every programmer needs to know about cognition. By Felienne Hermans
https://www.manning.com/books/the-programmers-brain