Love Flask in theory. My biggest complaint was trying to do user management with it. Flask-Security was good, but the developer skipped town a few years ago. Did they come back? :D Basically you are left to your own devices, which sounds great, but user+auth is pretty fundamental to be left to a random absentee third-party in my opinion.
Check out Flask-User. It's a lot like the user auth in Django. Developer still around.
Flask 1.0 Released
161–170 of 184 posts
Re: Flask 1.0 Released
#162Earlier quoted context omitted.
In my experience, Django is less suitable for large projects than Flask. The nature of Django encourages tight coupling between unrelated parts of the system - Models intertwine database operations and business logic, ModelViews intertwine db operations, business logic and the interface layer. This is manageable in the small, but when you hit scale, this tight coupling adds a whole bunch of unnecessary complexity to…
This is a false statement that Django is unsuitable for large projects. I have been working on a fairly large Django Project for 5 years now and it has been a pleasure using Django to build good and stable features that actually scale. > The nature of Django encourages tight coupling between unrelated parts of the system - Models intertwine database operations and business logic, ModelViews intertwine db operations,…
PHP is absolute garbage at that for example.
Re: Flask 1.0 Released
#163Earlier quoted context omitted.
I have worked on several Python code bases exceeding 500k lines. Not sure why you think that's uncommon.
There are a lot of different types of software being made in python. I've managed to do python for 10 years only working on one codebase that size, and I'm not sure it counts - it was made by low skilled devs (we were encouraged not to do anything "clever", like use the language features) mostly cutting and pasting existing code.
Re: Flask 1.0 Released
#164Earlier quoted context omitted.
In my experience, Django is less suitable for large projects than Flask. The nature of Django encourages tight coupling between unrelated parts of the system - Models intertwine database operations and business logic, ModelViews intertwine db operations, business logic and the interface layer. This is manageable in the small, but when you hit scale, this tight coupling adds a whole bunch of unnecessary complexity to…
Might want to tell instagram https://m.youtube.com/watch?v=lx5WQjXLlq8
I suppose they call it hack now though.
Re: Flask 1.0 Released
#165Earlier quoted context omitted.
There are a lot of different types of software being made in python. I've managed to do python for 10 years only working on one codebase that size, and I'm not sure it counts - it was made by low skilled devs (we were encouraged not to do anything "clever", like use the language features) mostly cutting and pasting existing code.
You've got to love companies that have the don't be "clever" attitude... Whats the point of hiring skilled workers to just dumb them down. I've stopped counting the companies that openly stated, "we don't pay you to think," only to see them stuck in an endless loop of mediocrity.
Doesn't seem like viable strategy at all, I'd run the other way if I were approach by such a company.
Re: Flask 1.0 Released
#166Earlier quoted context omitted.
Django is great for building Django apps. That is, if you're starting a greenfield project and don't have to integration with an existing database schema, and you like the Django ORM, and you like Django templates, and your data model maps cleanly onto a relational DB, and you can use the admin site more or less as-is without having to customize much, then it's lovely! I'm not being sarcastic: it really is. We've suc…
You don't need Django's ORM, templates, and admin section to build a Django app. Check out this example of a single-file Django project: https://www.safaribooksonline.com/library/view/lightweight-d... It's from a good book called Lightweight Django .
Re: Flask 1.0 Released
#167Earlier quoted context omitted.
They only improve speed from an initial "get it working" point of view. That's part of the reason flask is rarely taken seriously as a production solution. Not having natural separation between views and urls is a real PITA for anyone trying to create a long term solution or larger project. For what it's worth, I also hate the argument that bad design increases Dev speed. That's only true until you need find somethin…
True in a very large project, false on the rest. Congrats on your one-true-way argument. ;)
def hello_handler(r: Request) -> Response:
return Response.ok("Hello!")
def goodbye_handler(r: Request) -> Response:
return Response.ok("Goodbye!")
if __name__ == "__main__":
router = Router("/")
router.register_route("/hello/", "GET", hello_handler)
router.register_route("/goodbye/", "GET", goodbye_handler)Re: Flask 1.0 Released
#168Earlier quoted context omitted.
This is a false statement that Django is unsuitable for large projects. I have been working on a fairly large Django Project for 5 years now and it has been a pleasure using Django to build good and stable features that actually scale. > The nature of Django encourages tight coupling between unrelated parts of the system - Models intertwine database operations and business logic, ModelViews intertwine db operations,…
Some frameworks however are much better at forcing you to make good design decisions. PHP is absolute garbage at that for example.
Re: Flask 1.0 Released
#169Earlier quoted context omitted.
There are a lot of different types of software being made in python. I've managed to do python for 10 years only working on one codebase that size, and I'm not sure it counts - it was made by low skilled devs (we were encouraged not to do anything "clever", like use the language features) mostly cutting and pasting existing code.
You've got to love companies that have the don't be "clever" attitude... Whats the point of hiring skilled workers to just dumb them down. I've stopped counting the companies that openly stated, "we don't pay you to think," only to see them stuck in an endless loop of mediocrity.
Re: Flask 1.0 Released
#170Earlier quoted context omitted.
This is a false statement that Django is unsuitable for large projects. I have been working on a fairly large Django Project for 5 years now and it has been a pleasure using Django to build good and stable features that actually scale. > The nature of Django encourages tight coupling between unrelated parts of the system - Models intertwine database operations and business logic, ModelViews intertwine db operations,…
Some frameworks however are much better at forcing you to make good design decisions. PHP is absolute garbage at that for example.
There are good frameworks in PHP too and not all PHP code is garbage.