Maybe the future generations will need to pay otherwise.
199 karma · joined June 1, 2017
Type systems don’t cut it always, you sometimes need something in-between imperative code - which is hard to test all edge cases - and pure type system chasing. The sweet spot maybe lies in having a DSL (in this case "building business mutations") and have good building blocks.
Isn’t that called a duck?
Every year we ask ourselves if we should be using such an niche tool but somehow almost every new employee at our company gets hooked on smalltalk. So it now has become our secret superpower.
CREATE TABLE reservations (
item_id uuid,
duration tsrange,
EXCLUDE USING GIST (item_id WITH =, duration WITH &&)
);