• What the Functor? - Monoids

    Monoids, monads, functors are all jargon you often hear associated with functional programming. While understanding what they are is not key to grokking functional programming, it helps to know they aren’t some esoteric never used concepts. In fact you’ll be surprised to know that you are already using them in...

    Read more
  • What The Functor?

    If you’ve ever delved into functional programming, sooner or later you start seeing the words functors, applicatives and monads everywhere. While they sound scary, they’re fairly easy concepts to understand. Let’s start with the functor. Functor A functor is anything that implements the map function. And that is it. Wait,...

    Read more
  • Creating NEM Addresses From Scratch

    What is NEM? NEM is a cryptocurrency platform like Ethereum with its native currency, XEM (like Ether is to Ethereum). It uses a novel Proof of Importance consensus algorithm unlike Bitcoin or Ethereum which use Proof of Work. Let’s look at how to create a NEM address programmatically. A NEM...

    Read more
  • Destructuring Arrays in Ruby

    Destructuring arr = [1, 2] first, last = arr # first = 1, last = 2 arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] min, max = arr.minmax # min = 1, max = 10 Nested Destructuring arr = [[1, 2],[3, 4]] (one, two),(three, four) =...

    Read more