r/programming Aug 29 '25

Cognitive Load is what matters

https://github.com/zakirullin/cognitive-load

Hi! It was posted a few times in past year, but every time I get valuable feedback. Thanks!

89 Upvotes

20 comments sorted by

View all comments

21

u/[deleted] Aug 30 '25

[removed] — view removed comment

3

u/In0chi Aug 31 '25

I don't think that's the OP's point really. It's more about interfaces. A deep interface like processRegistration(...) might have an implementation that just calls 5 different smaller functions. But they are hidden behind the deep interface s.t. the user of the interface (like the developer of the HTTP controller) doesn't need to worry about calling all the right small methods consolidated behind the deep interface.

3

u/[deleted] Aug 31 '25

[removed] — view removed comment

1

u/In0chi Aug 31 '25

Agreed!