Read in the Substack app
Open app

Discussion about this post

User's avatar
Johann Schwarz's avatar

I read this, and I read your article In Defense of ORMs.

I am somewhat in that camp of ORM-haters that you are trying to address, but I don't think that we necessarily disagree - I suspect we may be using different definitions of what an ORM is. And maybe I'm wrong and being too narrow!

But, in my mind, ORM is a framework that tries to map object identity & lifetime back to the database. You know the classic ActiveRecord type pattern where if I have a User object and call `setEmail`, it's doing the SQL UPDATE transparently in the backend. I _do not_ hold that just any database utility framework is an ORM.

I gladly use utilities that can codegen type-safe systems around my database schema while hating on traditional ORMs, because like you I'm all-in on type safety and avoiding stringly-typing things.

Expand full comment
Xdp's avatar

From a backend engineer, that writes SQL for a living, sorry this is Utter garbage.Try doing group by, rownumber, dense rank, lead, lag,pivot in JavaScript . But I am so happy because of article like this, I will always have a job. And the beginners that read this article will never learn system design in their life. And will be replaced by AI early in their careers.

But Slava Ukraini.

Expand full comment
2 more comments...

No posts