Reading List

The most recent articles from a list of feeds I subscribe to.

Use of Go's `cmp.Or` for multi-field sorting

A more elegant way to sort on multiple fields using Go 1.22’s cmp.Or helper.

ValOrDefault

A pair of helper functions ValOrDefault and ValOrDefaultFunc that can help significantly to clean up Go code around assigning default values.

Heroku on two standard dynos?

Contemplating whether the Heroku platform would fit on two standard 512 MB dynos if it could be ported from Ruby to Go.

Activating cached feature flags instantly with notify triggers

Reflecting changes made to feature flags immediately, despite a local in-process cache, by firing sync notifications from triggers, and listening with the notifier pattern.

Shiki

At long last, adding syntax highlighting for code blocks to this website, and what I like about Shiki, a syntax highlighter that uses on the same engine as VSCode.