Hi, I'm Zen.
I ride cows and write JavaScript.

Here I will teach you to write amazing code and be as cool as me.

Scroll Down

Using Aurelia and Redux together for good times all around

Since playing with React and Redux I've really missed the separation of data flow and view logic this affords when working with Aurelia - in my opinion a fantastic framework to work with, but lacks data management features out-of-the-box. But alas, Redux to the rescue! I'm going to show you how to use Redux with Aurelia in a pretty simple »

How to parallelise external API calls with Elixir to make them super fast

I'm working on a Phoenix application which uses the Instagram API via the Elixtagram library. There is a particular page where I need to display a bunch of users who need to be retrieved from the API... Here's the "before" (sequential) code: def users_list(%Account{favourite_users: users}) do Elixtagram.configure users |> Enum.map(fn(u) -> »

"@zensavona so do you actually like my tweets or are you just a marketing spammer?"

Some asshat on Twitter

"I think we might be soulmates."

@pah_heyy Hot Girl On Instagram

Since playing with React and Redux I've really missed the separation of data flow and view logic this affords when working with Aurelia - in my opinion a fantastic framework to work with, but lacks data management features out-of-the-box. But alas, Redux to the rescue! I'm going to show you how to use Redux with Aurelia in a pretty simple example with config for Redux »
If you've ever used irb, node or pretty much any other command line REPL, you probably really miss being able to use the up and down keys to recall your last commands from a previous session in iex. Today I discovered a package which hacks this functionality into the Erlang shell, and thus also works for Elixir. It's very simple to install: git clone git@ »
I think most software engineers know what I'm talking about when I say "recruiters are annoying". We all get the tweets and emails that are like "Hey, I saw your GitHub/LinkedIn/Twitter/Blog and have a great opportunity for you, can we set up a Skype/phone conversation?". When you reply with a question about tech stack and pay, often their response will be »
I'm working on a Phoenix application which uses the Instagram API via the Elixtagram library. There is a particular page where I need to display a bunch of users who need to be retrieved from the API... Here's the "before" (sequential) code: def users_list(%Account{favourite_users: users}) do Elixtagram.configure users |> Enum.map(fn(u) -> Elixtagram.user(u.ig_id) »
Recently I've been working on a multi-tenant blog hosting application with a Rails front end, and this required us to let users set their own domains. Here's how to dynamically route your Rails application with multiple domains and subdomains (of yours and theirs). Dynamic routing in Rails In my application there is the concept of a Site which always has a slug, which becomes slug. »
I was looking at my StackOverflow profile the other day and saw something that made me stop and think for a second: I am by no means a high reputation user, or someone who participates in SO very often but wow, that number is absolutely mind bending to me. What I understand this to mean is that eighty seven thousand developers have read the words »
Anomie
a year ago
Anomie is the condition of a society in which there are no clear rules, norms or standards of value. In modern western society we seem to triumph diversity and inclusiveness over all else. I think this is misguided and wrong. We need to draw a line here between demographic and moral diversity, demographic diversity (skin colour, age, sex, sexual orientation, etc.) is surely a good »
Chiang Mai
a year ago
Chiang Mai is a beautiful city with an attitude to match. This is my third time in Chiang Mai, Thailand; it's taken me a combined 6 months or so of time spent here to actually pen a post about it. I haven't quite had the words. Chiang Mai is the second biggest city in Thailand and completely different to Bangkok, it's chilled out, green, hipster »
Belgium (part 2)
2 years ago
My first impressions of Belgium were of Gent, a small student city to the west of Brussels, since then I've been staying in Brussels with my friend Anna and her cat Hera; this has widened my perspective of Belgium and the people who live here in the best possible way. The first thing I realised when I explored this city for the day was that »
Belgium
2 years ago
Belgium is unreal. I've been in Gent for two days now and I love it here. Belgium is the first country I've ever visited that completely just 'gets it'. They don't have tons of health and safety bullshit, but nobody is stupid - they seem to favour individual liberty and trust people to not be stupid. The people are friendly and welcoming, their country appears »