2 ms·
Your architecture may say exactly all of the qualities of your data are but when it comes to transferring it into and out of a database some of the fidelity is
by hinkley 9y ago
Your architecture may say exactly all of the qualities of your data are but when it comes to transferring it into and out of a database some of the fidelity is lost.
If you're trying to pull the data into a statically typed language (even one that isn't object based) there's an impedance mismatch and you almost have to trick your language into accepting the data. So you hide this indignity in something called an Object Relational Mapper, and the rest of your app just pretends like you have a database that gives you Objects.
There are a million flavors of these with their own jargon but it's all the same stuff, and they are all within an order of magnitude of each other on the awfulness scale (which is why I'm not to enthusiastic every time someone comes up with essentially the same thing under a different name. Like, say, Protocol Buffers)
- DonHopkins 9y agoAgreed, ORMs all suck because what they're trying to do is essentially sucky. But some are better at sucking than others by orders of magnitude! https://www.sqlalchemy.org/ https://www.sqlalchemy.org/