Re:From design patterns to category theory
by sandGorgon on Thursday October 05, 2017 @04:55AM
(#15407622)
pretty 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 - 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.
Re:From design patterns to category theory
by BoiledCabbage on Thursday October 05, 2017 @11:35AM
(#15409999)
I'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.
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 ).