Reading List

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

Occasionally injected clocks in Postgres

Using a coalescable parameter to stub time as necessary in tests, but otherwise use the shared database clock across all operations.

Testing the graceful handling of request cancellation in Go, 499s

Using built-in net/http facilities to make sure that canceled requests are abandoned immediately to save time and resources.

Be careful with Dropbox

Fun times with Dropbox’s new ~/Library/CloudStorage location and File Provider API integration.

Optimizing JPEGs with MozJPEG for local archival

Writing a wrapper script around MozJPEG to achieve ~80% compression on large JPEGs with little downside.

The right way to do data fixtures in Go

A safe, succinct test data fixtures pattern using sqlc and validator.