News for hackers. Stuff that matters.
Re:Software development topics I've changed my mind on after... by ramon156 on Wednesday February 05, 2025 @02:34PM (#42953867)
I can give an example for Prisma.

It joins in code, not in SQL. We realized this way too late because we assumed an ORM is optimally structuring code. It wasn't.

This, along with the fact that SQL is already a definitive language, made us realize that ORM's are stupid and utterly useless. I'm talking about the ones that try to pretend they're code, and not a query.

There are multiple ways you can design an ORM though, and one way is to let the user fully manage how they want the query to run, so you're pretty much structuring a query already. Why not go the extra mile and make an SQL query?

I get that ORM's are fine when you don't want to deal with writing queries (e.g. school projects) but for real world apps just take the extra minute...

Re:Software development topics I've changed my mind on after... by gniting on Wednesday February 05, 2025 @03:06PM (#42954357)
Perhaps this information will be helpful context for you and for anyone else who happens to land on this post: - https://www.prisma.io/blog/prisma-orm-now-lets-you-choose-th...

- https://www.prisma.io/blog/database-vs-application-demystify...