Reading List
The most recent articles from a list of feeds I subscribe to.
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.
ValOrDefault
A pair of helper functions
ValOrDefault
and ValOrDefaultFunc
that can help significantly to clean up Go code around assigning default values.