Ste Griffiths

Living the way of Jesus, writing code, and loving my community.

Hi, I’m SteGriff! I’m married to Helen, I write code for NSG Pilkington (and for fun), and I’m trying to take after Jesus Christ (but still working on it).

Life is always changing, so you can find my sort-of-up-to-date status on my /now page.

I write fairly technical notes on my blog, and more longform on

Recent blog posts:

Instantiating an extended/merged type in Typescript

Typescript lets you extend types with the & sign, creating new mutant hybrid types. I think these are called extended types, but I’m gonna call them mutants. How do we make an instance of these mutant types? I’ve got a Typescript class and an interface: export class ActivityModel { public...

My First (Modern) Angular Thing

Last month I started a new job at NSG Group, having moved on from Paymentshield. I knew coming into the job that new Angular (that is, 2+) was going to be the order of the day. Aside: two jobs ago, at Village, we wrote a lot of AngularJS (1.x) and...

Bit packing binary in JavaScript and JSON

I like to help out on the Glitch support forum which is mostly like a more friendly StackOverflow. Recently a young person was trying to train a neural net on a 256*256 square of grayscale pixels with random values from 0-255. But body-parser wouldn’t accept the payload because it was...