Custom JS in Rails 6

28 Mar 2021

I had a JavaScript class that I wanted to make use of in my Rails view. Sounded like a 5 minute job, but I spent a lot of time figuring out what the right approach is. Here's what I ended up with and you can tell me if it's a good or bad idea. Users...

Continue Reading →

Awk Notes

19 Jul 2019

The notes below are from my initial readings into Awk, and they demonstrate using it (and some other unix tools) to perform simple text processing. Full disclaimer, I'm still learning this stuff 🙂 Example 1: Tabulating Data Below are some fruits...

Continue Reading →

Offline Development

28 Sep 2018

I was recently on a long haul flight from Manchester to San Francisco with no Wi-Fi. As you can imagine, between regular snacks and naps, being off the grid for so long was quite the struggle. A few hours into the flight, I decided to pop out my laptop...

Continue Reading →

Proxies in ECMAScript

31 Mar 2018

What are they? Proxies give us greater control over what happens when we interact with objects. They wrap a target object and expose some of the internal operations on it. This means we can customise what happens when we get or set a property, create...

Continue Reading →

Typed Arrays in ECMAScript

28 Feb 2018

What are they? Typed arrays provide a way to quickly and easily manipulate the raw data stored inside a binary data buffer. This is really useful for processing audio and video data. They're similar to arrays, but with some subtle differences we'll...

Continue Reading →