ORMs Are Awesome
It’s popular to hate on ORMs. They’re big, they’re complicated, and they get in between you and your data. Instead, the argument goes, you should get back to basics and lovingly hand-craft artisinal SQL to query your database. And yet, despite the constant criticism, everyone continues to use ORMs for nearly every serious project. This is because ORMs are, in fact, awesome. In this post, I’ll go through some of the amazing things that become possible by putting an ORM layer in-between your database and your application logic. Not every ORM is created equal, and not every ORM has all the capabilities described here, but these are all things that are either impossible or extremely difficult to solve with one-off SQL throughout your application. ORMs aren’t perfect, but they are amazing tools, and you’re far better off using one.
chanind.github.io