Reading List

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

Go: Don't name packages common nouns

Avoiding naming Go packages after common nouns like rate or server so that they don’t clash with variable names, and how to find a more fitting name for them instead.

The romance of Europe

A concert in Berlin, correcting for tourist bias, and how smartphones own the planet.

ICQ

The ICQ universe will formally end on June 26th, 2024. Originally developed in 1996, that makes it 28 years old. What an incredible run.

Notes on implementing dark mode

Not a dark mode tutorial, but a few notes on some specific refinements of a good dark mode implementation like tri-state instead of bi-state toggle, avoiding page flicker, and responding to theme changes from other tabs or the OS.

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.