Mat Ryer

April 23, 2021

Tiny abstractions: Function hooks in Go

Function hooks are single method interfaces without the interface. // GetPersonFunc is a func that gets a Person by ID. type GetPersonFunc func(ctx context.Context, personID string) *Person I use them; • when my service code is still young, before any firm abstractions have emerged - see Tiny abstraction example • when I want to plug i...
Read more
March 7, 2021

Sneak peek: xbar, the BitBar reboot

I am very excited for people to start using xbar. It's now ready for beta testers. What is it? xbar is an app that puts the output of any executable script or program into your macOS menu bar. The BitBar reboot It's a ground-up rewrite of my BitBar project, which already has over five hundred plugins contributed by the open source comm...
Read more