Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Data objects

Name: Anonymous 2006-06-20 3:47

So, what's so great about them? I want a good reason to care for them. As far as I could see, they are an OO maniac approach to make everything OO, but I weren't given a reason why this is better than writing the SQL directly (assuming you dont' care about database compatibility) and handling lists with the results.

In particular, data objects provide a good database abstraction layer, but my main concern with them is how are you going to do that huge complex select with three JOINs and WHERE, GROUP BY and HAVING. I get the feeling you can't do complex queries with them, and whatever SQL the system generates won't be as efficient as your hand-crafted, equally as productive one; and you can't benefit from database functions like IF or GROUPCONCAT.

So I want to know if data objects have a good thing to them which I should care for, or if they are just more OO enterprise wankery for certificated losers who think SQL is hard to write.

Name: Anonymous 2006-06-20 5:26

>>3
The hilarity is the OO mappers tend to waste even more time reinventing SQL

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List