Live data from Hacker News

New Werkzeug and Flask Releases

lucumr.pocoo.org

11–20 of 59 posts

Re: New Werkzeug and Flask Releases

#11
post #6

Flask is about the most beautiful Python code you can write. Check out any other Python framework and they may have a decent api, but on the inside it is messy and confusing. Reading Flask source code on the other hand is a joy. There's no crazy stuff and few convoluted pieces + lots of comments so it is really easy to hack something if you must. Any Python coder who wants to improve their game definitely should stud…

For what it's worth, the internals of Bottle are very clean (and extremely simple - the entire library/framework is just one file).

Re: New Werkzeug and Flask Releases

#14
post #6

Flask is about the most beautiful Python code you can write. Check out any other Python framework and they may have a decent api, but on the inside it is messy and confusing. Reading Flask source code on the other hand is a joy. There's no crazy stuff and few convoluted pieces + lots of comments so it is really easy to hack something if you must. Any Python coder who wants to improve their game definitely should stud…

For what it's worth, the internals of Bottle are very clean (and extremely simple - the entire library/framework is just one file).

I know I'm biased on that, but if the internals of Bottle are clean it's doing something wrong :) WSGI/HTTP are incredible complex and in fact, too complex to fit into a single Python file.

There is a good reason for why Werkzeug (which Flask is based on) is 15000 lines of code.

Re: New Werkzeug and Flask Releases

#16

Earlier quoted context omitted.

For what it's worth, the internals of Bottle are very clean (and extremely simple - the entire library/framework is just one file).

I know I'm biased on that, but if the internals of Bottle are clean it's doing something wrong :) WSGI/HTTP are incredible complex and in fact, too complex to fit into a single Python file. There is a good reason for why Werkzeug (which Flask is based on) is 15000 lines of code.

It's in a single file which happens to be a little under 3500 lines long ...

Re: New Werkzeug and Flask Releases

#17
post #6

Flask is about the most beautiful Python code you can write. Check out any other Python framework and they may have a decent api, but on the inside it is messy and confusing. Reading Flask source code on the other hand is a joy. There's no crazy stuff and few convoluted pieces + lots of comments so it is really easy to hack something if you must. Any Python coder who wants to improve their game definitely should stud…

Not only is the code great, but so is the documentation, the release notes, and the community.

Re: New Werkzeug and Flask Releases

#20

Earlier quoted context omitted.

I know I'm biased on that, but if the internals of Bottle are clean it's doing something wrong :) WSGI/HTTP are incredible complex and in fact, too complex to fit into a single Python file. There is a good reason for why Werkzeug (which Flask is based on) is 15000 lines of code.

It's in a single file which happens to be a little under 3500 lines long ...

Right, he's implying that the implementation is not as complete, or is incorrect because the problem space is more complex than that.
Post reply on HN