3 ms·
I can't speak for Rails, but at least with Python (primarily Flask) it's not internal DSLs that have caused me problems. I don't think Flask attempts to be a DS
by vosper 10y ago
I can't speak for Rails, but at least with Python (primarily Flask) it's not internal DSLs that have caused me problems. I don't think Flask attempts to be a DSL at all, actually. From what little I've seen of Django it isn't trying to be a DSL either (unless I'm misunderstanding that term). It's more when I have 2 or 3 Flask libraries or middleware and they each are documented as if they exist in a vacuum but I want to use them all together and I wish it was easier to see that all 3 have functions that take a Flask Blueprint object, so they're probably all related, or that these functions work with URL objects, etc...
It's a general complaint about Python and the tooling I suppose, not specific to web application frameworks.
- crdoconnor 10y ago>From what little I've seen of Django it isn't trying to be a DSL either (unless I'm misunderstanding that term). Django bundles two DSLs - the ORM (filter, etc.) and the templating language. >I don't think Flask attempts to be a DSL at all Flask bundles jinja2 and sqlalchemy which perform the same purpose.
- vosper 10y agoThanks, now I have a better idea of what constitutes a DSL. It had occurred to me that the ORM might be one, but I forgot about Jinja2 which clearly is. Though, being pedantic, Flask doesn't bundle SQLAlchemy (though it's what you end up using) unless things have changed recently.