Fun with React & D3 | May 1

My last React post was a while back, actually in my day job I spend most of my time writing React applications so let's go back to React to have some fun. d3 is actally really nice and React itse ... More...


Asynchronous state management with Agents | Apr 2

In my last post we compared the implementation of macros in Elixir and Clojure. As I also mentioned, these two languages share a lot of features and terminology. In this post let's look at how we can handle simple asynchronous w ... More...


Macros in Elixir and Clojure | Mar 3

To me Elixir and Clojure seem like sister programming languages. Both are modern, dynamic and functional languages that embrace concurrency and immutability. Both Elixir and Clojure provide rich metaprogramming capabilities through macros. To understand macros let us look at how t ... More...


Sieve of Eratosthenes with Elixir | Feb 17

The sieve of Eratosthenes is a simple algorithm for finding all prime numbers up to any given limit. From wikipedia -

Works by iteratively marking as composite (i.e., not prime) the multiples of each prime, st ... More...


Hapi(ness) v17 | Dec 18

Node 8 hit LTS status recently and now we have full async/await support (yay!) on a stable Node version. This also means that a lot of JS libraries and frameworks have the oppurtunity to do code cleanups / rewrites to give us simpler APIs and faster / simpler code. KoaJ ... More...


No callback file operations | Sep 19

Reading and writing files in JS tends to get messy. But not anymore, with Node 8, async / await support combined with Util.promisify we can read and write to a file without a single callback or More...