95% of business apps used to be written in COBOL -- that doesn't mean it was a good idea.
Yes, of course, all data access should be abstracted through an API.
No, ORMs are a naive solution to a much more interesting problem that is better solved through regular code.
Besides, there is no such thing as an Object-Relational-Mapper. ORMs are data structure hydrators. All they do is translate relational tables into data structures.
An object is a collection of public behaviors that manipulates hidden data whose location cannot be determined from those behaviors. A data structure is a collection of public fields with no behaviors. Objects and data structures are the opposites of each other. ORMs do not map to objects, they map to data structures.
From: brah<-DerekRoss at 06/02/23 09:00:17 on wss://relay.damus.io
CC: #[4]
>---------------
>Isn’t like 95% of all data stored in sql databases? Or are you saying it should be abstracted via apis which I think in general would be, and most ppl use ORMs nowadays anyway