News for hackers. Stuff that matters.
Re:Special Cases Are a Code Smell by diminoten on Friday January 25, 2019 @02:21AM (#18996164)
Cognitive load isn't some anathema to all of programming. The trick isn't to avoid it, the trick is to isolate it.

Pretending like cognitive load is never worth the effort is wrong.

Re:Special Cases Are a Code Smell by richmarr on Friday January 25, 2019 @05:05AM (#18996834)
I see where you're going with this, but to be useful you need to split cognitive load (and the complexity it processes) into two groups.

There's complexity inherent to the problem and complexity that's incidental to the problem.

Cognitive load inherent to the problem should be isolated.

Cognitive load required to deal with incidental complexity (such as clumsy abstractions, etc) is a waste of time and should absolutely be minimised.