News for hackers. Stuff that matters.
Re:Ask HN: Is it reasonable to choose direct SQL over an ORM by mattmanser on Saturday March 23, 2019 @10:26AM (#19470563)
ORMs are great for simple stuff, but there's nothing stopping you from switching to raw SQL for more complex stuff.

Why can't you do both? I do it all the time.

Re:Ask HN: Is it reasonable to choose direct SQL over an ORM by thymanl23 on Saturday March 23, 2019 @02:15PM (#19471595)
In an ORM, the returned objects from even raw SQL is still ORM objects (database-aware objects). I prefer keeping the business logic layer distinct from the data access layer, so I prefer for the return objects to be pure business objects. Maybe I'm being too anal and forcing a distinction where there doesn't need one?