OTOH, how many elements should the reader's vocabulary have to enable him to read other's people code?
OTOH, how many elements should the reader's vocabulary have to enable him to read other's people code?
"A Comonad v is a cofree Comonad for f if every comonad homomorphism from another comonad w to v is equivalent to a natural transformation from w to f.
A cofree functor is right adjoint to a forgetful functor.
Cofree is a functor from the category of functors to the category of comonads that is right adjoint to the forgetful functor from the category of comonads to the category of functors that forgets how to extract and duplicate, leaving you with only a Functor."
So I take it you believe that a degree in category theory is the bare minimum for people to expect to be able to understand other people's code? The layman interpretation of "Avoid success at all costs" comes to mind.
The parent^2 comment also snipped an example explained in the blog post, where he specifically chose that structure so that he could make use of built-in structures to traverse the tree. Similar to the use of Cofree (though I understand the Traversable monad far more), the reasoning was presented, it made sense, and I could move on from that without scratching my head.
A common example of a "kind of hard problem" I see all the time on various tech sites (e.g. here) is flattening a rose tree (arbitrary depth nested array). Guess what? In Haskell, you can express the whole structure as "Free []". Hundreds of useful primitives are already written for you, including the thing you need to flatten the tree, "toList". This just goes to show that it's not a pointless masturbatory excercise in dragging math into software engineering; it's actually directly and immediately very useful.
It's a tricky concept no matter how you slice it (in my opinion), but I like the following article:
http://dlaing.org/cofun/posts/free_and_cofree.html
I won't claim it's easy reading, but it's a lot more grounded and motivated.
Pro. you write less code Pro. Your code is easier to read for everyone familiar with the abstraction. Con. You need a math degree. Con. Harder to get contributors. etc...
Tangentially. The docs also say that:
"In practice, cofree comonads are quite useful for annotating syntax trees, or talking about streams."
Sometimes you can learn the abstraction and one of its particualr use cases. And apply it when you find it, without needing the degree.
Also to answer your question: "So I take it you believe that a degree in category theory is the bare minimum for people to expect to be able to understand other people's code?"
No, I don't believe so.
But the experiment of forming a team of people that knows all this to see how productive they are, would be nice to see.