4 ms·
Might be the first time I've seen the words "elegant", "simple" and "Django's ORM" in the same sentence. You could say it's easy to get started with, or do simp
by rlander 9y ago
Might be the first time I've seen the words "elegant", "simple" and "Django's ORM" in the same sentence. You could say it's easy to get started with, or do simple queries, but it's definitely not simple nor elegant.
- davidscolgan 9y agoHaha, to each their own. There is such a thing as the object-relational impedance mismatch for a reason. I'm currently learning Elixir and Phoenix and it's ORM Ecto has some really interesting ideas. Functional programming seems to map to relational databases better than object oriented does.
- erik14th 9y agoEcto is really interesting, but it's not an actual ORM[0], Elixir doesn't deal with objects, there's a free book on ecto that's pretty interesting: [0]http://pages.plataformatec.com.br/ebook-whats-new-in-ecto-2-0 http://pages.plataformatec.com.br/ebook-whats-new-in-ecto-2-...
- davidscolgan 9y agoOh, I guess that's true in the sense that it doesn't map to objects but it accomplishes the same goal in a functional style. Maybe call it a Struct-Relational Mapper.
- rlander 9y agoYup, Ecto is awesome. For a project this recent, it does a lot of things right and gets out of your way when you need plain sql. I've been using Django for a decade and there are simple queries that were impossible with the ORM until recently. If you have to twist the ORM into spitting out the SQL you already know how to build, you know there's something wrong.