Either monad to the rescue…

Lots of programming problems can be modeled by pipe-lining data through series of sequential or parallel processing steps. This data flow allows us to separate computational tasks into meaningful modules and get more focused code base that is easier to debug and reason about. For example, a pipeline with three steps that takes input ‘req’Continue reading “Either monad to the rescue…”

Function oveloading in JavaScript

I was trying to get different behavior from the function depending on its arguments, a feature found in various programming languages such as Ada, C++, C#, Delphi, D, and Java, that allows creating several methods with the same name which differ from each other in the type of the input and the output of theContinue reading “Function oveloading in JavaScript”