One of the most divisive topics in programming is whether to use an ORM. Both sides have strong arguments, and each choice comes with significant trade-offs.
If you choose an ORM, it can boost your productivity, but it may also slow down your code and introduce obscure, hard-to-debug issues. Writing raw SQL avoids an extra layer of abstraction, but it requires some SQL knowledge and often involves writing a lot of boilerplate code.
Recently, I’ve been experimenting with DeepSeek and noticed that it excels at generating the boilerplate an ORM is supposed to save you from. That shifts the balance in the ORM debate, because the model can now do the ORM’s job.
Systems with fewer abstraction layers are more maintainable, especially when the abstractions you removed were leaky.
The law of leaky abstractions means that whenever somebody comes up with a wizzy new code-generation tool that is supposed to make us all ever-so-efficient, you hear a lot of people saying “learn how to do it manually first, then use the wizzy tool to save time.” Code generation tools which pretend to abstract out something, like all abstractions, leak, and the only way to deal with the leaks competently is to learn about how the abstractions work and what they are abstracting. So the abstractions save us time working, but they don’t save us time learning.
Of course, you can apply the same argument to LLMs themselves, but they don’t need to be present in codebases.