What ORMs have taught me: just learn SQL (2014)
woz.posthaven.com
What ORMs have taught me: just learn SQL (2014)
1–10 of 360 posts
Re: What ORMs have taught me: just learn SQL (2014)
#2Re: What ORMs have taught me: just learn SQL (2014)
#3Re: What ORMs have taught me: just learn SQL (2014)
#4Re: What ORMs have taught me: just learn SQL (2014)
#5(I'm not at all affiliated with jOOQ - just a happy user)
Re: What ORMs have taught me: just learn SQL (2014)
#6http://blogs.tedneward.com/post/the-vietnam-of-computer-scie...
Re: What ORMs have taught me: just learn SQL (2014)
#7As soon as I need to write something more complicated than select-by-id I end up reaching straight for SQL. Otherwise I have to learn both the ORM's query API or DSL and have the proper mental model for how it translates to actual SQL.
Or I could just write SQL and be done with it. No mysteries.
Maybe this is just me, but I've never written a join in an ORM that I had the slightest bit of confidence in.
Re: What ORMs have taught me: just learn SQL (2014)
#8To me, the big win with SQLAlchemy is that it separates the SQL expression layer from the ORM layer so cleanly. I can write very complicated queries with the expression layer that wouldn't be possible at the ORM layer, and do it in a much more composable way than concatenating SQL strings. Example: http://btubbs.com/postgres-search-with-facets-and-location-a...
Re: What ORMs have taught me: just learn SQL (2014)
#9But some points to be made in favor of ORMs (some of them, anyway):
* Multiple backend support to handle different SQL engines.
* Minimized risk of accidental injection.
* Migrations.