News for hackers. Stuff that matters.
Re:SQL Needed Structure by MaxMonteil on Friday September 05, 2025 @07:32AM (#45137366)
Oh nice! I had read this Sivers post a long time ago, time for a refresher.

Appreciate the info, thanks!

Re:SQL Needed Structure by bbkane on Friday September 05, 2025 @08:35AM (#45137795)
I like this point of view but putting logic in the database also has downsides - the tooling in particular is bad. No debugger, hard to write tests, can't canary changes, bad or non-existent autocompletion, lack of linters, etc.
Re:SQL Needed Structure by MaxMonteil on Friday September 05, 2025 @11:49AM (#45139925)
The tooling keeps getting better so I'm bullish on that side.

For canaries there's growing support for branching the database which can help.

But in the end, this like all things requires balance. Putting everything in there can lead to pain down the road, for example I wouldn't follow the http part.

My use case is with app's local sqlite and I have a lot of code transforming the returned rows into JSON. It works but feels slower and to divorced from the data.