Bossy Lobster

A blog by Danny Hermes; musing on tech, mathematics, etc.

Edit on GitHub

Almost unique (constraints)

almost-unique

It turns out it's quite straightforward to construct an "almost unique" constraint in PostgreSQL via EXCLUDE.

I was recently stuck in a jam in our PostgreSQL database during a feature migration. We needed a "partial UNIQUE" constraint and I was surprised to find out that PostgreSQL doesn't support them1 …

Edit on GitHub

What npm Can Learn from Go

npm and Go

This post was included in Golang Weekly issue 414. This is cross-posted from the Hardfin engineering blog.

As programming language ecosystems evolve, they learn from each other. When this happens we all benefit from more useful features, patterns, libraries, and tools. A core part of a programming language ecosystem — packaging …