Cognitive complexity measures how hard code is to understand by humans, not machines. Unlike traditional metrics, cognitive complexity considers the mental effort required to read and comprehend code.
But I’ve noticed that when I open everything all at once, I slip into a reactive mode before I’ve even decided what I ...