Learning another codebase generally involves fitting someone else's metaphors in your head. This is why devs are tempted to write their own.
miniblog.
Related Posts
Lovely introdution to chaining computations in Haskell, and avoiding nesting: https://argumatronic.com/posts/2018-01-23-the-nesting-instinct.html (involves the M word, but in a very friendly way!)