An Oversight

Object Relational Mappers have a dream. Their dream is that the mechanics of creating, reading, updating and deleting can be abstracted away and need not be thought about.

I have a dream, too. My dream is that the fact that creating, inserting, updating and deleting is going on can be abstracted away and need not be thought about.

The ORM dream has a big ol’ flaw, to the extent that I am sceptical about the use of ORMs in general. The flaw is that the right way to do CRUD operations depends rather heavily on the domain and the application in question.

My dream should not be vulnerable to that particular flaw, though, because I’m trying to abstract away those operations entirely. Or so I thought right up until yesterday, when I realised that since my approach is to first convert the programmer’s code into a form that does have CRUD operations, I’m going to have the ORM problem from then onwards.

And it’s worse, because when you call the CRUD operations yourself you can exercise a fair degree of control over what goes on. When the CRUD invocations are automatically generated, that control would have to be exercised by hints and indirect suggestions.

Bugger.

Advertisements

2 thoughts on “An Oversight

  1. It turns out this is maybe not such a big deal, because a lot of the reasons ORMs get into grief are related to joining things across tables. In the world I’m aiming for you can painlessly denormalize any time that ORM-land might have called for a join, so this might not be a problem.

  2. hOur company provides a wide variety of non prescription drugs. Look at our health portal in case you want to look healthier with a help of generic supplements. Our company offers a wide variety of non prescription drugs. Take a look at our health portal in case you want to feel better with a help of health products. Our company offers supreme quality health and related products. Look at our health contributing portal in case you want to feel better. Our company offers herb-based supplements. Look at our health contributing website in case you want to feel healthier. Our site offers a wide variety of non prescription drugs. Visit our health site in case you want to feel better with a help generic supplements. Our company offers a wide variety of non prescription products. Visit our health portal in case you want to look healthier with a help of general health products.
    Our company provides a wide variety of non prescription products. Take a look at our health website in case you want to to feel healthier with a help of health products. Our company provides a wide variety of non prescription drugs. Visit our health portal in case you want to feel better with a help of general health products. Our company provides a wide variety of supplements. Look at our health contributing site in case you want to look better. Our company provides a wide variety of supplements. Take a look at our health contributing site in case you want to improve your health. Our company offers safe general health products. Take a look at our health contributing portal in case you want to look healthier.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s