Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What’s the point of ORM code if you already have optimal SQL?



It still needs to turn the query results back into objects.


More languages are getting destructuring semantics built into them. I think this problem is slowly taking care of itself. You write a query that renames everything to your struct names, or you write a mapping that does it, then let the programming language do its thing, instead of a third party library doing it.

Essentially your code for talking to the database starts to look more and more like the code that deals with JSON responses, which all just look like quasi-idiomatic code in the programming language.


Because you can't put the latest Hype Train item on your resume without it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: