Re:ORM is an anti-pattern
by pyre on Saturday September 17, 2011 @02:11PM
(#3008619)
I don't see anyone arguing that the database is stupid for being slow. I see a bunch of anti-ORM people arguing that an ORM is never the right solution to any problem ever. I also see a bunch of people arguing that ORM mixed with SQL is perfectly fine and there is nothing 'broken' about it (which I think is the more moderate view). I don't see anyone here arguing the opposite extreme of "ORM is always the right approach to every problem." I view the "ORM fan" as a strawman for the most part in this whole discussion.
[ Parent
| on HN ]
My experience as a DBA is that someone will develop using Hibernate, it'll go into production and run like a dog, and they'll go straight to their manager and say "It's the database". Because noooooo it couldn't be his perfect code, could it?
So ORM should never be used because it might be used by some incompetent programmer somewhere and frustrate his DBA?
Sure. It's just a coding standard like any other. Enforce it the same way you enforce unit test coverage.