Hacker News new | past | comments | ask | show | jobs | submit login

ORMs are useful though for a different reason. They let you creat typed objects then generate the schema from them and automatically create a lot of boilerplate SQL for you.

Admittedly for anything more than 1-2 joins you are better off hand crafting the SQL. But that is the exception not the rule.

Refactoring DB changes becomes easier, you have a history of migrations for free, DDL generation for free.

In the early 2000 I worked where people handcrafted SQL for every little query for 100 tables and yeah you end up with inconsistent APIs and bugs that are eliminated by code generation / meta programming done by ORMs.




Admittedly for anything more than 1-2 joins you are better off hand crafting the SQL. But that is the exception not the rule.

String disagree: if that’s true you likely don’t even need a proper RDBMS in the first place.

An ORM is not a replacement for knowing how SQL works, and it never will be.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: