4 ms·
Here is one benefit I imagine to naming the functions according to colors: expanding the Working Memory you have available to reason about code. The brain’s wo
by afarrell 5y ago
Here is one benefit I imagine to naming the functions according to colors: expanding the Working Memory you have available to reason about code.
The brain’s working memory hardware has a few pieces and among them are the visuospatial sketchpad and phonological loop [1]. Code is language and when you hold parts of a codebase in your head, it occupies space in the phonological loop. By making some data about code chromatic/visual, we can hold that in our heads more easily.
[1] https://en.m.wikipedia.org/wiki/Working_memory https://en.m.wikipedia.org/wiki/Working_memory