Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mtkd
11 months ago
|
parent
|
context
|
favorite
| on:
Versioned finite-state machines with Postgres (201...
Surely that logic should not sit in persistance layer though?
sgarland
11 months ago
[–]
I mean, you shouldn't be throwing shit at the DB and seeing what sticks, but why not have the absolute source of truth also be the validator? CHECK constraints are fairly cheap.
maxbond
11 months ago
|
parent
[–]
They also derisk deploys of application code. If you deploy a bug that doesn't uphold your constraints, you get failures rather than corruption.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: