News for hackers. Stuff that matters.
Re:Ask HN: Is it reasonable to choose direct SQL over an ORM by thymanl23 on Saturday March 23, 2019 @02:19PM (#19471614)
Hmm, yeah, but I think more than just not using a query building api, I prefer pure result objects. Even when dropping to SQL, the result objects are still database-aware objects. I prefer distinct layers between the business domain layer and the data access layer. Having a data access layer return pure business objects allows for this decoupling, but maybe I'm being to strict and forcing a distinction where there doesn't need to be one?

There are no comments on this comment yet.