What ORMs have taught me: just learn SQL
wozniak.ca
What ORMs have taught me: just learn SQL
1–10 of 245 posts
Re: What ORMs have taught me: just learn SQL
#2Re: What ORMs have taught me: just learn SQL
#3I've caught a lot of flak for saying this, but I'm convinced that all ORMs are ultimately tech debt. Sure, they get you up and running quickly, but once you're there, you'll invariably find yourself wanting to do things that require you to work against and around your ORM to accomplish. By pretty much any definition I've ever encountered, that's "tech debt"
Don't most ORMs let you write raw SQL when you really want to? In that case, you could use the ORM for simple things, but revert to raw SQL when you need more power. Or is that not the case?
Re: What ORMs have taught me: just learn SQL
#4Re: What ORMs have taught me: just learn SQL
#5Re: What ORMs have taught me: just learn SQL
#6I've caught a lot of flak for saying this, but I'm convinced that all ORMs are ultimately tech debt. Sure, they get you up and running quickly, but once you're there, you'll invariably find yourself wanting to do things that require you to work against and around your ORM to accomplish. By pretty much any definition I've ever encountered, that's "tech debt"
(caveat: I'm a developer but I haven't used ORMs very much.) Don't most ORMs let you write raw SQL when you really want to? In that case, you could use the ORM for simple things, but revert to raw SQL when you need more power. Or is that not the case?
Re: What ORMs have taught me: just learn SQL
#7And then someone came and said: "I created this concise and super flexible language for querying data." Would people want it? I think they would, and we'd see tons of articles about vast forests of objects being replaced by small snippets of SQL.
Re: What ORMs have taught me: just learn SQL
#8If you start writing custom SQL you have to introduce horrible bodges to work with whatever database is in use.
Re: What ORMs have taught me: just learn SQL
#9I agree with basically everything in this post, obviously :-)
Re: What ORMs have taught me: just learn SQL
#10Here's a thought experiment. Lets say we lived in a world without SQL and the default way to talk to DB's was through an ORM.... And then someone came and said: "I created this concise and super flexible language for querying data." Would people want it? I think they would, and we'd see tons of articles about vast forests of objects being replaced by small snippets of SQL.