News for hackers. Stuff that matters.
Re:Migrating to Postgres by reillyse on Wednesday May 14, 2025 @09:59PM (#43991135)
Every ORM except Active Record is awful. Active Record is amazing.
Re:Migrating to Postgres by irjustin on Wednesday May 14, 2025 @11:17PM (#43991487)
I moved from Rails -> Django and man my life is so painful. The Django ORM is an exercise in patience.

To be fair, Prisma's `OR` clause looks so good. Way better than ActiveRecord.

Re:Migrating to Postgres by globular-toast on Thursday May 15, 2025 @03:17AM (#43992610)
Except active record can barely be considered an ORM IMO. Doing a literal one to one mapping between records and objects is not that impressive. A real data mapper ORM at least gets you true entities that are decoupled from the db. That way you could totally swap out your data layer without affecting your domain layer. Active record leads to big ball of mud architecture.
Re:Migrating to Postgres by MrPapz on Thursday May 15, 2025 @06:00AM (#43993443)
I still dream about a JS version of Rails' Active Record.