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:34

>>4
TBH I haven't used any other than Ruby on Rails, so I can't compare, but I found that RoR Just Works (TM) with basically no code.

I did take a quick look at Zope and wasn't impressed. It looked horribly overengineered; it even reinvents Java-style Interfaces! I'd hoped to escape those forever!

I've heard that PHP's DB interface sucks so much that PHP programmers prefer to build SQL queries by hand for everything.

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