functional programming Open The Tap to Functional Logging After throwing ourselves into a functional approach to programming, using function composition, smart datatypes and curried pure functions, we often find that our programs "just work" much more frequently than ever
functional programming Functional Production Lines (or Composing Functions) In the early days of their manufacture, a car was built in one place in a factory. One person built the chassis, another person built the body on top of it, and someone
javascript The Power of Purity A key concept in functional programming is that of referential purity. A referentially pure function will always return the same value given the same arguments; this unlocks some extremely powerful behaviour that is
react Using the React Children API One of the things I love about React is its small API surface - it demonstrates how well a library can encapsulate its complexity away from the end user. In fact, for the
functional programming What the Functor? A week ago I wrote an article on implementing Maybes in JavaScript, and while it was generally well received, it did draw some (well justified) criticism from some commenters. Specifically, there are some
functional programming Building a Maybe in JavaScript Cannot read property "x" of undefined. I'm guessing if you're reading this you've seen that message before, and probably at some point wanted to throw something through your monitor. We have
functional programming Curried Functions and Point-Free Programming Ordering the arguments of our functions isn’t something that we often spare too much thought about, but after experimenting with Elm recently (it’s great by by the way!) the benefits have