3 ms·
I would not say, that this is universally true. Django has way more features than Flask, but SQLAlchemy is also way more powerful than the Django ORM. I would
by allendoerfer 11y ago
I would not say, that this is universally true. Django has way more features than Flask, but SQLAlchemy is also way more powerful than the Django ORM.
I would rather say: Know your toolset and the plugins/libraries that work well with your micro-framework. Use them when applicable.
- vinceguidry 11y agoI did not intend to speak universally, rather just towards the Ruby ecosystem, as I don't have enough experience with other frameworks to be able to make a call. What makes Ruby great is that everything is very modular. You don't have to use the Active Record ORM if you don't want to. When I'm using Rails, I use Active Record as its Rails integration is best, but when I'm outside of Rails, I use the Sequel DB toolkit, which is far and away the nicest piece of DB abstraction software I've ever had the pleasure of working with. You could use Sequel in Rails if you wanted to, there are other ORMs as well catering to NoSQL DBs. You could even use a graph DB like Neo4j, plugs right into Rails. I don't use Python so I would be ill-equipped to compare SQLAlchemy with Ruby Sequel. But Active Record is really nice too, it's got a lot of baked-in functionality that Just Works. Its brilliance is that most of the time, you never even notice it. But once you look under the hood, you see just how much work has gone into it. But it doesn't play well outside of Rails and isn't quite as semantically nice as Sequel.