Yes I can’t imagine going back to doing big CRUD apps without AR, readability and maintenance would take a hit. The catch is you need a prior good knowledge of SQL to use it correctly. Problems happen when people don’t learn SQL and then don’t understand the queries AR is generating and the limits.
You hit the nail with this, ActiveRecord is truly a joy to use, when you stumble upon an edge case, you can always go back to raw sql again!
This is how an ORM should be.
Re:Is ORM still an anti-pattern?
by thinkpad13 on Thursday June 29, 2023 @02:24PM
(#36524619)
yeah i dont get why they complaint about orm, maybe its because the only orm that I use is activerecord
pragmatic ORMs that don't try to hide everything behind a "bundle" or introduce their own query language are great, it's the ones that try to totally "solve" the ORM problem that are hard to work with