4 ms·
I have learnt monads via the absolutely MARVELOUS book by Brian Lonsdorf. cf https://github.com/MostlyAdequate/mostly-adequate-guide https://github.com/MostlyAd
by lolive 9y ago
I have learnt monads via the absolutely MARVELOUS book by Brian Lonsdorf.
cf https://github.com/MostlyAdequate/mostly-adequate-guide https://github.com/MostlyAdequate/mostly-adequate-guide
I agree that Haskell is built around those concepts.
But the point of learning category theory is to change your mindset when programming.
And even in Javascript, it is super useful.
(basically because, while trying to learn category theory, you become fluent in functional programming ).
- sandGorgon 9y agopretty cool. Especially this. >Part 3 will start to dance the fine line between practical programming and academic absurdity. We'll look at comonads, f-algebras, free monads, yoneda, and other categorical constructs. I myself like this - https://github.com/valentjedi/ddd-dynamic https://github.com/valentjedi/ddd-dynamic - but I'm beginning to think maybe all of this is not the right paradigm for programming in languages like javascript or python. The success of tools like React or RxJava in Android makes me think that the tools define the paradigm and not the other way around... no matter how much we want it to be.
- BoiledCabbage 9y agoI'm not certain, but isn't RxJava just a specific inplementation of a monadic pattern with IObservables? I thought the original Rx was a Haskeller saying "Hey a 'dsl' built on a monad would be really powerful here in C#" and implemented it. Then it spread to other langs from there.