News for hackers. Stuff that matters.
Re:Objection to ORM Hatred by yyyk on Monday January 16, 2023 @02:06AM (#34397761)
All your arguments are correct, but are unrelated to the main motivations for ORMs. ORMs are about:

- Convenience of using SQL from $LANGUAGE where mapping the result, (re)naming, etc. is handled for you. Do this manually, and eventually you will either make silly mistakes or create your own mini-framework.

- Connection pooling / retrying if desired. Can be done without, but again mini-framework.

- Migrations. Generating a schema from code is neat.

- Making our lives miserable when the ORM inevitably generates horrible SQL somewhere and we need to override it manually. That is, ORMs are NOT a replacement for learning SQL.

Re:Objection to ORM Hatred by fastball on Monday January 16, 2023 @02:28AM (#34397890)
Realistically the only ORM part of your list is the first item. Everything else is frequently done without having an ORM.
Re:Objection to ORM Hatred by Tostino on Monday January 16, 2023 @11:20PM (#34409082)
I actively dislike merging ORMs with schema migrations. They really seem like they are two totally separate use cases and shouldn't be conflated like they were.