News for hackers. Stuff that matters.
Re:What ORMs have taught me: just learn SQL (2014) by james-mcelwain on Friday September 20, 2019 @10:38PM (#21033150)
> What if your result set doesn't really match any of your models? Pick one arbitrarily.

I don't want to sound like the ORM defender, but I'm not sure I understand.

This sounds like a deficiency of Ruby and the ActiveRecord record model. In Java, for example, you'd just write a new POJO for your query, which isn't exactly difficult. There are no "smart methods" or whatever.

It is a valid criticism that this can proliferate data classes, but that depends on the application.

Re:What ORMs have taught me: just learn SQL (2014) by philwelch on Saturday September 21, 2019 @04:00AM (#21034082)
I was writing in terms of what I actually understand and have used—which doesn’t include any Java ORM. In fact if there are Java ORMs that consist solely of POJOs which are populated by raw SQL queries, I would gladly use them!