May 1, 2024
Thanks, Hussein. I couldn't agree with you more. Embedding queries in code may seem like a harmless shortcut, but it leads to a rat's nest of undocumented dependencies.
We tried it with SQL back in the 1980s and it proved to be a very bad and expensive idea.
https://medium.com/nerd-for-tech/designing-a-rest-api-3a070398750f#316b