3 ms·
I love the Django ORM. It's concise, generates good queries and just works. However, there's a danger - for complex applications, you want neatly separated dom
by Scarblac 3y ago
I love the Django ORM. It's concise, generates good queries and just works.
However, there's a danger - for complex applications, you want neatly separated domain objects and data layer. Django makes it really easy to make your model your domain object, and at some point that starts to hurt.
But a large part of any app is just objects backed 1-on-1 by a database table, and CRUD actions on them. It's fine.
Just watch out for those parts where the separation is needed, and separate them.
- robben1234 3y agoI feel that ORM might be an antipattern depending on a language. Every Java developer I interacted in my career with wanted to avoid ORMs and instead come up with a bunch of pattern-abstracted ways to write raw SQL. Every Python developer I interacted in my career with loved their ORMs. Django or SQLAlchemy.
- Scarblac 3y agoProbably depends on the typical type of application, team size etc then? Or maybe Hibernate is just horrible :-) (I haven't used it)