Hacker News new | past | comments | ask | show | jobs | submit login
When you hear ‘Monad’, think ‘Chainable’ (2017) (jamesward.com)
22 points by mooreds on Aug 6, 2022 | hide | past | favorite | 6 comments



Scala is a difficult language to learn but, once I got past the learning curve, I found it to be enjoyable and powerful. The cats effect [0] framework is a no-brainer for chaining side effects.

[0] https://typelevel.org/cats-effect/


No no. Think

    join :: m (m a) -> m a
Or

    (>>=) :: (a -> m b) -> m a -> m b


So... Perl line noise?


Pretty much the opposite of Perl tbh

Just because you don't understand the characters doesn't make it nonsense. It's actually less nonsense than 99% of professional programs.


I never called it nonsense.

I called it Perl line noise, which is more an indication of it being obtuse to understand for anyone not in the know, or even in the know, because of it being such a short implementation with zero context for outsiders.

To be fair, it's also peacocking. you're not helping anyone understand monads, you're just waving pretty feathers saying "look at me, I know these things and am therefore excellent" without bothering to try and educate those of us that dont understand.


No, I am helping people learn monads. If your "m" can have those functions, you have a Monad. That's all you need to know (and all I know). I don't peacock lol mostly because I don't care about the opinions of other programmers.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: