Hacker News new | past | comments | ask | show | jobs | submit login

I am a huge proponent of ideas like using SQL to directly implement business logic. When you bring the logic and the data together under the same abstraction, things will begin to click that you didn't even know existed. Business logic expressed as SQL commands can be stored as yet more data within the same schema. This opens the door for reflection and other features you would ordinarily only think to look for in advanced backend languages.



I sometimes deal with such code.

I belive it works for you, and I can even say I think most projects have (a little) too few lines of embedded sql in them.

But arguing for code that isn't checked out with the rest of the code when I clone the repo, isn't greppable, and radically departs from everything most people are used to, that isn't something I'd accept.


You can greatly improve DX with something like this and get the best of both worlds.

https://github.com/t1mmen/srtd




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: