Wondering what are the benefits of functional and object-oriented programming and how to combine them? Look no further: this slide deck highlights key features of both approaches in a structured manner.
Viewing entries in
Functional Programming
My simple and practical Intro to Monads in JS, where I covered basics of Identity and Maybe monads, seemed to be helpful for a lot of folks, so I’ve decide to continue the topic. Now it’s time for Either – a tool for fast-failing, synchronous computation chains. A tool that may increase readability and quality of code while reducing error proneness. The best part is that we can still ignore the category theory!
Can unfamiliar pattern from world of statically typed functional languages improve JavaScript world? For sure YES! The elastic nature of JavaScript can handle great ideas from many alien worlds. With a little help of modern tools like monet.js and TypeScript we can achieve awesomely descriptive aesthetics of our code and drop some imperative bloat.