News for hackers. Stuff that matters.
Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by agentultra on Thursday February 15, 2018 @08:12PM (#16389183)
I tried my best to write a series of posts [0] demonstrating functional programming concepts using practical examples. I've found that Javascript is actually a decent language for learning about currying and monads, etc, because it affords you the ability to pick up a little bit at a time. You can learn one little trick and use it to improve your existing code before picking up another.

The nice thing about Monads is that once you learn the interface then encountering another is no big deal: you already know the API and how to use it. And it turns out this pattern is quite common.

[0] https://agentultra.com/blog/mostly-practical-functional-prog...

Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by mercer on Saturday February 17, 2018 @02:06PM (#16402125)
While I agree, I've also found that it can be a danger. I thought I was all about the functional programming until I used languages that 'required' it. It was only then that I realized I'd been using non-functional escape hatches all over the place.