News for hackers. Stuff that matters.
Re:Problems with Object/Relational Mapping (2006) by PaulHoule on Saturday July 22, 2017 @06:17PM (#14829741)
This is an old article and much has changed.

ORM frameworks in many languages such as Ruby, Python, Java, etc. have improved enormously since that time. I think they'll continue to improve as metaprogramming facilities improve, it is very feasible to convert an expression like 'x>2*y-7' from conventional programming languages to SQL and other query languages.

Also there is immense interest in document databases such as CouchDB, Marklogic, Elasticsearch, DynamoDB, etc. These solve some of the problems of object-relational mapping, and we will someday see new frameworks.

Re:Problems with Object/Relational Mapping (2006) by eropple on Saturday July 22, 2017 @07:18PM (#14829973)
ORM frameworks in the languages you listed primarily act as mutating state functions. So, to be honest: no, they haven't improved enormously at all.

If your framework doesn't work first-and-foremost on immutable objects on which defined state transforms can be applied, you're putting your foot in a bucket that's very hard to extricate yourself from.

Data mappers are pretty much the only reasonable mode, it seems. And they kinda suck, but they suck much less.

Re:Problems with Object/Relational Mapping (2006) by specialist on Sunday July 23, 2017 @10:18AM (#14832352)
ORMs tip over once your queries have joins.
Re:Problems with Object/Relational Mapping (2006) by WalterGR on Sunday July 23, 2017 @04:10PM (#14834136)
Which ORMs don't?
Re:Problems with Object/Relational Mapping (2006) by bjourne on Sunday July 23, 2017 @12:45AM (#14830940)
I came here to say that too. Back then ORM:s were clunky because the languages (Java) and techniques we were using were clunky.

For example, the article talks about object identity and equality. Nowadays, you would try and design your data so that object identity doesn't matter because that works better with the functional paradigm.

He also discusses how to map inheritance to database tables, but that is a moot point -- people don't use inheritance to model data anymore. The old "an Employee class is an instance of a Person class and has a reference to a Manager class which is also a Person-instance" thinking isn't used anymore.