Brandur

@brandur
147 Followers
13 Following
259 Posts
Engineering on Crunchy Bridge. Ex-Stripe. Ex-Heroku. Occasional writer. Themes: web APIs, Postgres, Rust, software safety and resilience, efficient human interfaces, and running.
Websitehttps://brandur.org
Newsletterhttps://nanoglyph-signup.brandur.org
Sequenceshttps://brandur.org/sequences
Twitterhttps://twitter.com/brandur

There are so many websites that would actually look better if they just stuck to system fonts at regular weights.

Ultra light weights really appeal to young designers especially, but most eventually learn that they shouldn’t be in common use.

This is nothing earth shattering, but a short write up on the "parallel test bundle", a Go testing convention that we've found inordinately effective for keeping subtests parallel safe, DRY, and tidy/readable. 10/10 strong recommendation.

https://brandur.org/fragments/parallel-test-bundle

The parallel test bundle, a convention for Go testing — brandur.org

Web APIs: Enrich DX By Disallowing Unknown Fields

Using Go's `DisallowUnknownFields` JSON decoder option in web APIs to improve DX by helping users detect typos and other spelling problems in API endpoint parameters.

How you know you're at the right coffee place —

Walk in. They ask what kind of coffee you're looking for.

Well, let's start with light roast.

We only carry light roast.

Perfect.

e.g. The Barn, Berlin. Sightglass, SF.

RT @pganalyze: E59 of ”5mins of Postgres” is about UUIDs vs Serial for Primary Keys. We explore reasons for using random keys and reasons for using sequential keys. We also show hybrid approaches and discuss the UUIDv7 standard. We feature @Xof and @brandur: https://hubs.li/Q01G5R_n0

https://twitter.com/pganalyze/status/1636406865277104128

UUIDs vs Serial for Primary Keys - what's the right choice?

Learn reasons for using random keys and for using sequential keys. We look at hybrid approaches (sequence + random or time + random) and are looking at UUIDv7.

pganalyze

This is cool: `CL.THROTTLE` (easy rate limiting) given a permanent home in DragonflyDB.

And I can't believe I'm saying this, but C++ actually doesn't look all that terrible to write anymore!

https://github.com/dragonflydb/dragonfly/pull/714

feat(string family): implement `cl.throttle` by ZetaNumbers · Pull Request #714 · dragonflydb/dragonfly

Solves #270 Port all of the tests; Integer overflow safety.

GitHub

Amazing. "Journalists" lie gleefully, not having a shred of internal morality, and knowing their audience doesn't care about truth even by one iota.

@elonmusk Removing those legacy bluechecks that imply non-existent legitimacy cannot happen soon enough.

https://twitter.com/TitterDaily/status/1634688082338299912

Tweet / Twitter

Twitter

Hip Seattle-themed store at the airport sells cassette tapes, apparently unironically.

I sort of love it, but important question, does the technology to play these even exist anymore?

SF report: 60% of DT jobs and $1.2B/y gone.

Confirms forecasts showing "only" a $728M deficit over 2y were fantasy. Property taxes $82M/y and business tax $139M/y lower than projected.

$1B deficit wasn't expected until 2026. It'll be here by 2024 or 25.

https://sfbos.org/sites/default/files/BLA.DowntownSF.Economy%20Tax.022423.pdf