by nsxwolf · 13y ago · 0 comments
Don't believe me?
1. Do you have objects? 2. Do you have relational data?
There's the O and the R. How do you get them together? That's where the M comes in. You use a library that knows how to do the M, or you do your own M with a bunch of getters and setters, for loops and case statements.
Eventually, any little change to the database becomes a regression nightmare.
Once you find yourself saying "I know, I'll build a code generator to create these DAOs", that's when you should finally realize you should have used a real ORM. Sadly, many people still won't get it at this point and will go ahead with the code generator.
Bullshit. You are making absurd generalizations based on your personal view of how the rest of the world operates.
>1. Do you have objects?
No, I do not. That makes it pretty obvious that I do not use an ORM doesn't it? "Everyone" includes more than just people using OO languages.
The user clicks save. Now what? You've got to get that change to the data in the dictionary inserted into the correct place in the relational database.
You're going to write code to do by hand what an ORM wants to do for you.
Then you are doing XRM, where X = Objects, structs, vars...