by drw85 · 5y ago · 0 comments
Impedance mismatch is a physical thing, it creates physical problems that are based on laws in nature. Having to map your database entities to a model that is different has nothing to do with any physical things, it's a mental construct.
If you have a mismatch of impedance, what do you do? You insert something between the two mismatched devices to match the impedance. Isn't that what all software does already anyways? Insert some mapping, converting, transforming layer between the two pieces?
But at least this one is not particularly harmful or obfuscatory - you have A and B and you need to frig things so they can talk to each other.
When I have conversations about this, I encounter the term "object/relational impedance mismatch" a lot more often than I encounter people who really have a thorough understanding of what the term describes and why it exists.
It often seems to me like the way it functions in our profession is a lot like the way the word "quantum" functions in Deepak Chopra's vocabulary. It's not really a specific, definable thing, so much as an amorphous, esoteric cosmic principle that can be used as a universal logical connector for stitching together any arbitrary chain of reasoning.
Which is too bad. I don't think it's actually a particularly difficult concept, when you get down to it. But I do think that the fancy-sounding technical name for the concept tends to obfuscate its meaning by making it sound like a much bigger deal than it actually is.
[1] https://en.wikipedia.org/wiki/Object%E2%80%93relational_impe... [2] https://youtu.be/qI_g07C_Q5I?t=98