Nursing Code

Using Rust in Ruby

Introduction I'm not going to make the case for using Rust, there are hundreds of articles and videos out there which will do a much better job of explaining the case for why Rust is an amazing language. This guide is about how to put Rust to practical us…

Continue Reading →

Getting started with Glimmer Components in Ember.js

There's a lot of buzz in the Ember community about the upcoming release of Ember Octane Edition. It represents an enormous amount of work by the Ember core team and community. The release will roll out a hugely simplified javascript model and the use of G…

Continue Reading →

Debugging Broccoli and Ember-CLI

Recently I've been working on an extension to one of our products and we decided that we should explore using an Ember Engine to properly separate concerns and make the extension mountable in multiple places. As part of the process we have plans to swap o…

Continue Reading →

Phoenix in Production with systemd

In this post, I'm going to explore how we can leverage systemd to ensure our apps are kept running even following a power outage or whole system crash. Running Elixir in production For those not familiar with running an Elixir application there are two ma…

Continue Reading →

Recursion and Pattern Matching in Elixir

In this post I will try and explain how pattern matching and recursion work in Elixir with some (hopefully) simple examples. I’m not going go into the ‘why’, for that, there are many people better qualified than me to explain. What I hope to acheive is a …

Continue Reading →

Profiling Phoenix on a Raspberry Pi 2

I've been talking a lot recently with colleagues (and anyone foolish enough to ask) about the benefits of Elixir, based on the performance of the underlying Erlang Virtual Machine (BEAM). One of the things I'm most impressed with is the ability to utilize…

Continue Reading →

Shitty UX in the name of 'Security'

Today I saw someone in a Slack discussing a website that blocked pasting. This led to me wanting to share some thoughts on the topic of user experience (UX) and security. Why does (product / service) stop me from pasting? The only real argument that I he…

Continue Reading →

Remote Profiling Elixir Over SSH

Erlang comes with an awesome tool called observer, which is readily available to the Elixir user. If you want to use it, simple run :observer.start from an IEx session. An interesting feature is that you can then connect to another node and observer its d…

Continue Reading →

Lightning Deploys with Phoenix and Ember

I have been really interested in the discussions in the Rails and Ember communities on the topic of Lightning Deploys. Here are some things I've tried, failed, learned and succeeded with! What's a lightning deploy anyway? One of the issues that many folk…

Continue Reading →

Custom Mix Tasks for Database Seeding

Why a custom Mix task? I love the built in support for seeds with Phoenix, but sometimes I don't want to programatically generate a bunch of stuff, sometimes I just want to initalize the database in a known state. This is particularly useful for things t…

Continue Reading →