Re:Simple Ways of Reducing the Cognitive Load in Code
by tigershark on Tuesday June 28, 2016 @12:30PM
(#11995120)
Every method can be split sensibly. Using the functional paradigm it becomes natural to understand it because you usually work in the opposite way using composition of functions rather than dictating what happens in an imperative way.
And large, complex functions do increase the cognitive load.
I personally abhor regions or sections because most of the time they can go in a separate method and they just break the code-flow with something completely unrelated.
[ Parent
| on HN ]
There are no comments on this comment yet.