| ▲ | TZubiri 2 days ago | ||||||||||||||||||||||||||||
Didn't the committee agree that ORMs were a mistale and a thing of the past? | |||||||||||||||||||||||||||||
| ▲ | mr_Fatalyst 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||
Must have missed that meeting. ORMs are not for everything, but for CRUD-heavy apps with validation they save a lot of boilerplate. And there's always execute_raw() for when you need to go off-script. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ▲ | fhub 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
Where ORMs are clearly weak is in generating suboptimal queries and making it too easy to create N+1 issues. My first introduction to ORMs was Ruby on Rails. You would rely on New Relic to identify performance issues and then fix them. With solid AGENTS.md / CLAUDE.md, I do not think this would happen as much anymore in new code. So then it is just a matter of style preference (ORM vs whatever else). | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ▲ | zamalek 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
Micro-orms (mapping to parameters and from columns) are generally fine last i read. It is the general aversion to writing a SELECT that is suspect. | |||||||||||||||||||||||||||||