cookbook
cookbook copied to clipboard
Finish Monad / Functional Programming Article
I was reading the following in the ‘general-advice' chapter: “Creating class hierarchies is a good way to get frustrated with Meteor”. Which pretty much blew my mind: What else? Being still a pretty young programmer I’ve always assumed OO was a best practice by itself - admittedly probably a pretty naive assumption. The chapter mentions ‘monad decorator pattern’ could be used to simulate class inheritance. Fresh as I am I had never heard of monads before and - although I think I got some understanding of it - I found it hard to get a grasp on the concept. What remains a big mystery to me is how I would create monads that can have that hierarchical behaviour of class inheritance has without making use of actual classes and subclasses (or prototypes in JS’ case). Could anybody give some tips on how to approach this technique in meteor or maybe point out some literature on that subject?
This is a fantastic question! While I'm no authoritative source, I do have some notes on monads that I've been meaning to put together into a short article. Give me a few days, and I'll try to type them up! :)
Thank you, both for the compliment and your answer. :)
I'm looking forward to the follow up!
one course that blew my mind about monads and functional programming in general is this one (the title is quite of-putting! ;) ) : https://frontendmasters.com/courses/functional-javascript/
awatson1978 I was jus wondering if there where any updates? :)