News for hackers. Stuff that matters.
Re:ORM is an anti-pattern by gaius on Saturday September 17, 2011 @07:16AM (#3007799)
ORM is like satnav in your car. Sometimes it will get you from A to B without you having to think too much. But sometimes it will send you off around the houses.

Now a normal person would say "stupid satnav" but an ORM fan would say "stupid car" (blame the database for being slow).

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.
Re:ORM is an anti-pattern by gaius on Sunday September 18, 2011 @04:43AM (#3009809)
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?
Re:ORM is an anti-pattern by pyre on Sunday September 18, 2011 @07:02AM (#3009971)
So ORM should never be used because it might be used by some incompetent programmer somewhere and frustrate his DBA?
Re:ORM is an anti-pattern by gaius on Sunday September 18, 2011 @10:13AM (#3010236)
Sure. It's just a coding standard like any other. Enforce it the same way you enforce unit test coverage.
Re:ORM is an anti-pattern by pyre on Monday September 19, 2011 @04:32AM (#3012776)
So your argument is:

  It is possible for someone to improperly use X, therefore
  X should be banned.