by taude · 13y ago · 0 comments
Flask is like Legos in that you choose the pieces to build onto its minimalist stack. You can use if for lightweight prototyping or full-blown web apps.
Since all these things "are a worry", it's probably best for new-comers to web dev to use a full stack that makes decisions for you, that has cohesive documentation across components, and a large contingent of users.
Very well said.
"best for new-comers to web dev to use a full stack that makes decisions for you"
I do not agree. When I started learning web dev. using python, I started with Django. As I moved along trying to hack a simple side project using django, I realized that I was just not understanding the "why" of many things. For example, I tried to create a simple user registration and needed my own fields on the user object. Playing around with User and User_Profile on django, I gave up after a few hours. When I came across Flask, I actually found it easier to do some of my own stuff to understand the whys and then i could always choose a vetted extension/plugin. For example, I wrote my own login system in flask and then switched to Flask-Login later. Btw, this is not about django vs flask but just giving a perspective as a newbie learner.
To newbies, my personal opinion is to understand the "whys" a lot more than just the "what". I actually think that flask is a better way to start learning because it will force you to think about the basics like sessions, user management etc. The more you learn why something works the way it works, the better you will become at it.
The same goes for all of the plugins. You only have to add (and therefore learn about) the "legos" -- to use taude's metaphor -- that you need to build your spaceship.