r/programming • • Apr 27 '18

Flask 1.0 released

https://www.palletsprojects.com/blog/flask-1-0-released/
174 Upvotes

28 comments sorted by

34

u/tjeannin Apr 27 '18

For those who don't know, Flask is one of the most popular python web framework. :)

-57

u/nakilon Apr 27 '18

Just a buggy parody on Ruby's Sinatra.
Instead of mimicking tones of Ruby tools try to learn newer polished language for better productivity.

23

u/ThePa1nter Apr 27 '18

Idiot alert.

8

u/MikeFightsBears Apr 27 '18

Almost everything that guy posts is either negative or fanboying ruby

6

u/[deleted] Apr 27 '18

What are some bugs you’ve noticed while using Flask? Ruby is a nice language but I’m not sure what makes it more polished or productive than Python...

Edit: Sinatra does look like a solid Ruby alternative.

19

u/hamolton Apr 27 '18

Dope! I really like Flask for how easy it is to get little web apps up and running. Maybe it will see more professional use now since it starts with a 1.

8

u/joshuaavalon Apr 27 '18

Is there any major changes from previous version? From the releases note, it does not seems like to have any breaking changes.

5

u/holgerschurig Apr 27 '18

Sounds good to me. So you have this 0.9 version that finally has all the things you want. So name this 1.0 to have some stable base.

Except that in my case, Flask even the Flask from 3 years ago was stable enough for my product :-)

44

u/_INTER_ Apr 27 '18 edited Apr 28 '18

I never realized Flask wasn't 1.0. It always felt completely production ready. I use it in production. Contrast that with any JS framework.

2

u/occz Apr 28 '18

producation

production*

Also, there's nothing particularly wrong with the most popular JavaScript backend frameworks like Express. Some things even feel a bit less magical than when working with flask (like explicit request/response objects instead of the request module and how flask handles view function returns)

0

u/[deleted] Apr 27 '18

[deleted]

12

u/m3wm3wm3wm Apr 27 '18

The JS world ain't so crazy and scary any more.

Fool me twice...

4

u/vivainio Apr 27 '18

Your most popular web framework was orphaned iirc

2

u/Fujffihgg Apr 27 '18

With the comment deleted I’m curious as to which framework this is.

1

u/OleWedel Apr 27 '18

Express, I would guess.

0

u/_INTER_ Apr 27 '18

Perhabs it's just the language that makes everything feel unfinished, hacky, risky and like a giant messy workaround.

10

u/Diiix Apr 27 '18

Who does all these vector illustrations for open source projects?

3

u/sign_on_the_window Apr 27 '18

How does Flask compare with Django?

7

u/[deleted] Apr 27 '18

Django is more complete. When I was looking to write a little web app, I realized that if I wanted to use Django, I had to *learn* Django deeply. I just wanted to serve dynamic pages. Flask was perfect for that. All I had to do was fill in a couple functions.

11

u/brianly Apr 27 '18

Django is a fully featured framework with opinions on how things should work. It focuses on building apps with a relational database. Flask is a bare-bones web framework that requires you to decide how to interact with the database, handle authentication etc. It's lighter weight and excels at smaller web services, but you can build out your own framework in Flask if you add enough libraries. There are some detailed comparisons available.

2

u/vivainio Apr 27 '18

It has much less stuff in it than Django. E.g. it has no ORM of its own

3

u/cryptos6 Apr 27 '18

Why did it take so long to say it is "1.0"? Flask is used in production environments for years and the version number should have reflected this. It is a bad habit to keep 0.x forever (or nearly forever).

15

u/The_yulaow Apr 27 '18

The 1.0 milestone does not depend on how many people/companies use it in production, but on how many of the "core" features are considered complete and stable by the dev team.

-2

u/DenverCoder009 Apr 27 '18

They must have listened to the Python Bytes episode on versioning

0

u/[deleted] Apr 27 '18

[deleted]

2

u/mhashemi Apr 28 '18

Hey, good news is that bottle.py, which inspired Flask, is still going strong with ZeroVer! http://bottlepy.org/docs/0.12/