by langcss · 2y ago · 0 comments
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.
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.