cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Finish Monad / Functional Programming Article

Open yn5 opened this issue 10 years ago • 4 comments

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?

yn5 avatar Oct 31 '14 08:10 yn5

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! :)

awatson1978 avatar Oct 31 '14 16:10 awatson1978

Thank you, both for the compliment and your answer. :)

I'm looking forward to the follow up!

yn5 avatar Oct 31 '14 16:10 yn5

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/

kevohagan avatar Oct 31 '14 16:10 kevohagan

awatson1978 I was jus wondering if there where any updates? :)

yn5 avatar Nov 11 '14 11:11 yn5