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

Ymmv, but I like the both/and approach. I’ve seen high quality codebases where the benefits of both are leveraged: ORM for simple queries, idiomatic code reuse; raw sql for complex or performance critical queries. Being smart about when to use which is the key, but I have seen it work very well.


This is what I think is the reasonable take on ORMs. If you're using one because you don't wanna learn SQL, that is a bad reason that will most likely result in more work in the long run.

But if you're using it to increase productivity for straightforward database calls, it can be a useful tool in a lot of scenarios.




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

Search: