News for hackers. Stuff that matters.
Re:ORM is an anti-pattern by davesims on Saturday September 17, 2011 @11:21AM (#3008209)
Early vs. later isn't the problem. You can write n+1 queries in your first model or your 1000th. The problem is developers who don't know how to watch logs, don't know how to write efficient SQL, and projects that don't use adequate monitoring in general. If your ORM use is getting worse as you go, you probably need code reviews or NewRelic or better developers.
Re:ORM is an anti-pattern by gaius on Saturday September 17, 2011 @12:37PM (#3008411)
Yes that's the whole point - ORM is a crutch developers use to avoid learning how databases work. Yet weirdly they're happy to learn the ORM! Hell in Hibernate you have a query language called HQL, why not just use SQL!

Said developers will never take the next step of swapping out bad ORM-generated SQL for good hand-tuned SQL. The app is therefore doomed.

Re:ORM is an anti-pattern by davesims on Saturday September 17, 2011 @02:07PM (#3008610)
You seem to have worked with a lot of lazy hack developers, and I can only sympathize. I hope you find a better group of colleagues soon, and maybe you'll find less use for words like 'never' and 'doomed'.