9 ms·
Good luck finding all places that access some table if you want to change something Is it really that hard though? All we need to do is have a class for Users
by akudha 8y ago
Good luck finding all places that access some table if you want to change something
Is it really that hard though? All we need to do is have a class for Users (or products or whatever) and put all queries in that class.
ORMs are annoying, they add another layer of complexity and take the joy out of just writing a simple query. Now I have to learn yet another syntax which is totally unnatural. There is no guarantee these ORMs convert to optimized queries, and not all ORMs support all SQL features either.
Just reading a 20 line ORM query with multiple complex joins vs the same thing written in plain SQL hurts the eyes and brain.
- fiedzia 8y ago> All we need to do is have a class for Users (or products or whatever) and put all queries in that class. Yes, and this is very close to doing what orms do.