A monoid is a pipeline of functions. e.g. cat x | sort | uniq ; or F(G(H(x))). A monad is a monoid with smart pipes.
-
-
Replying to @unclebobmartin
Mate, fair dinkum. Once again, you are wrong. Not a little bit wrong. Completely off base. When are we going to fix this? The offer remains.
4 replies 5 retweets 68 likes -
Replying to @dibblego @unclebobmartin
I really am not comfortable with this onslaught on someone who is trying to make FP concepts map to something they already understand. This is how we *all* learn anything new. Don’t give functional programmers a bad rap.
1 reply 1 retweet 2 likes -
Replying to @ajnsit @unclebobmartin
There is no onslaught, and no, this is definitely not how anything is learned.
1 reply 0 retweets 4 likes -
Anupam: that's like saying people shouldn't be upset when a tweet from a medical account is sent out to 106000 people which says "well aspirin is basically like chalk so just eat chalk"
1 reply 0 retweets 5 likes -
It seemed more like - here's something you already use, that's actually a monoid! And intent aside, I really think the tone of replies should have been more "yes, in one way, and let me show you other cool things they can do", rather than "you idiot, you'll never get it".
2 replies 1 retweet 2 likes -
Replying to @ajnsit @PLT_cheater and
I felt the same way on Reddit when I kept trying to relate things to OOP concepts that I already new. Folks jeered at me by saying OOP is bad, ORM is bad, stop trying to get stupid concepts in FP etc. But I'm thick skinned and bite back, and didn't let that dissuade me.
1 reply 1 retweet 1 like -
Replying to @saurabhnanda @ajnsit and
I have found that grasping concepts in FP is faster if they are explained as analogous to some concepts you already know, or explained why/how they are different from other languages. In this case, I'm split - is this even accurate? Monoid as a pipeline of functions?
2 replies 0 retweets 1 like -
Replying to @saurabhnanda @PLT_cheater and
A pipeline of unix style functions does form a Monoid. All these functions are effectively typed (String -> String) and their pipeline composition is effectively monoidal composition.
2 replies 0 retweets 0 likes
A monoid is a triple (always). In this one particular case being alluded to ((.), id, forall a. Endo a) is the monoid. So, no it isn't accurate. It also doesn't inform the question around the definition or purpose of monoids.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.