3 ms·
> ORMs are very leaky abstractions I think this is where a lot of the anti-ORM crowd trip up. They start with the idea that an ORM completely abstracts away a
by twic 6y ago
> ORMs are very leaky abstractions
I think this is where a lot of the anti-ORM crowd trip up. They start with the idea that an ORM completely abstracts away a database, show that isn't true, and then condemn ORMs. But ORMs don't do that, aren't advertised as doing that, and aren't useless because they don't do that.
- ragnese 6y agoYes and no. I find that using leaky abstractions is often harmful as a general principle. So it doesn't matter that ORMs admit that they are a leaky abstraction. I still pretty much hate them for it. It just feels pointless when I know I'm going to have to understand and use the underlying tech anyway. For ORMs specifically, I much rather use a query builder that's basically just a type-checked SQL DSL. Some of those aren't complete either, though, which also enrages me.