logoalt Hacker News

reillyseyesterday at 1:59 AM3 repliesview on HN

Every ORM except Active Record is awful. Active Record is amazing.


Replies

irjustinyesterday at 3:17 AM

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.

MrPapzyesterday at 10:00 AM

I still dream about a JS version of Rails' Active Record.

globular-toastyesterday at 7:17 AM

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.