5 ms·
Then what the fuck is a monad?!? Seriously I still don’t know what a monad is and apparently it’s just a bunch ifs and for loops, so I guess I’m pretty stupid.
by pyuser583 5y ago
Then what the fuck is a monad?!?
Seriously I still don’t know what a monad is and apparently it’s just a bunch ifs and for loops, so I guess I’m pretty stupid.
- peterburkimsher 5y agoI don't understand monads either. They look like concise programming for mathematicians, which in my opinion, is tending towards set theory notation. https://xkcd.com/2545/ https://xkcd.com/2545/ Personally I prefer more names, more XML tags, more comments, more parables, more hyperlinks, more different ways of expressing the same thing, to make it less ambiguous and easier to communicate and agree what we're all talking about.
- deleted 5y ago[deleted]
- AmpsterMan 5y agoA monad is just a monoid in the category of endofunctors... duh!
- astrange 5y agoIt's not "the" monoid in the category of endofunctors though, just "a" monoid. That also describes Applicative (less powerful) and Arrow (more powerful).
- pyuser583 5y agoA monad is like when your cat poops on the carpet, so you wrap your cat in toilet paper. Then your cat has kittens, and the kittens are born with toilet paper wrapped around them! No here’s a better explanation: A monad is like when you have a clock, but it’s broken and goes too fast. So you rewind it, and the next morning you wake up and it’s 5000 BC. Or here’s a better explanation: A monad is like when Donald Trump won the election, and then stacked the Supreme Court, and now we’re totally fucked! That’s it! That’s exactly what a monad is!
- tonyedgecombe 5y agoIt's what you add to a search to get more interesting answers on Google.
- astrange 5y agoIt's like if you wrapped every statement ending in ; in a C program with the same macro.
- pyuser583 5y agoI’m a Python programmer. We don’t have macros … or semicolons.