Canadian software engineer that is working with the awesome people at ObjectSharp Consulting in Toronto, Ontario, Canada. https://blairleduc.me
I’ve consulted on a dozen microservice projects. Some were awesome (this is the future!) and some were equally frustrating (who invented this crap?)
…at React Native is trying to do, so the possibility of reusing code between the web and app clients was a huge plus, but I decided that I wasn’t going to consider possibilities that might or might not ha…
There is a style of writing functions without having to specify the parameters called Point-Free Notation. At first, this style will seem odd but as you continue, you’ll grow to appreciate the brevity.
In math, f ∘ g is functional composition and is read “f composed with g” or, more commonly, “f after g”. So (f ∘ g)(x) is equivalent to calling f after calling g with x or simply, f(g(x)).
In Functional Programming, functions are our building blocks. We write them to do very specific tasks and then we put them together like Lego™ blocks.
Code reuse sounds great but is difficult to achieve. Make the code too specific and you can’t reuse it. Make it too general and it can be too difficult to use in the first place.
A closure is a function’s scope that’s kept alive by a reference to that function.
When a function is created, all of the variables in its scope at the time of creation are accessible to it for the lifetime of the function. A function exists as long as there still a reference to it. For example, child’s scope exists as l…
In Functional Programming, a function is a first-class citizen of the language. In other words, a function is just another value.
Higher-order Functions either take functions as parameters, return functions or both.