cross-posted from: programming.dev/post/17660759