4 ms·
Love Flask. I don't do it anymore for other reasons but flask is what got me started with web frameworks that are minimal but powerful. What I love about flask
by codegeek 10y ago
Love Flask. I don't do it anymore for other reasons but flask is what got me started with web frameworks that are minimal but powerful. What I love about flask is that it does not do too much magic like django even though this is not meant to demean django of course. It makes me think and make some choices. Since the core is minimal, you still have to learn a few things to really understand how to put together a decent web app or an API but I really feel that is the strength of flask.
My belief is that when you are learning, start with a minimal framework so that not everything is already done for you a.k.a magic. That will make you think and make some choices. Sure it may be amateur choices in the beginning but you will become a better developer. So if you want to learn python for web, go with Flask.
- chucksmash 10y ago"What I love about flask is that it does not do too much magic like django" So having used both, I'd nitpick you on this assertion. from flask import request to get at the individual request objects is sooooo much more magical than def my_view(request): (IMO) Nevertheless, it's a good framework!
- Svenstaro 10y agoI agree on that. The magical globals are also my biggest problem with flask. Other than that, it's a very solid framework that obviously has had lots of thought go into it.
- m_mueller 10y agoI think this is just a design choice to avoid confusion between request / session parameters in the view functions versus path parameters. It's quite nice that you can just do @route("/<post_id>") def my_view(post_id): .... never having to register anything and just decorating your functions with these path decorators gets you started really really fast. That's how a flask hello world is just 6 LOC and `python ./my_server.py`.