3 ms·
As opposed to the dizzying array of ORMs that all have multiple caveats you need to know and utterly incompatible in fundamental ways between each other? Folks
by ttfkam 3y ago
As opposed to the dizzying array of ORMs that all have multiple caveats you need to know and utterly incompatible in fundamental ways between each other?
Folks go on about how they're "stuck" with a single dialect of SQL but completely ignore how utterly impossible it is to switch ORMs without a full app rewrite. And ORMs are all language-specific, so if you have two different app clients in different languages, you can't always share even basic API access patterns.
Got a Java Spring app alongside a Django app? Good luck!
- marginalia_nu 3y agoWell yeah, I do think there is a fundamental difference given the DBMS is effectively hidden in this scenario, whereas the ORM is not.
- quickthrower2 3y agoIoC (not just interfaces, not just DI) should avoid this. Inject me an object that gets people objects that meet an interface (ok might need to be async) and you can switch out how that is done later. But it is more boilerplate