r/Python • • Apr 26 '18

Flask 1.0 released

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

58 comments sorted by

View all comments

22

u/ThePidesOfMarch Apr 26 '18

I don't really buy into the "framework" mindset, but I really love flask. I really just use it to handle the routes, return codes and templates (at least so far) but even just that is plenty.

14

u/strange-humor Apr 27 '18

I agree. I use Flask and like it. However, I think architecting in a Clean Architecture style and using Flask as a service to it makes more sense to me. Programmers get sucked into a framework or ORM and get locked in.

-5

u/doobiedog Apr 27 '18

Dear god yes. Orm are great for PoC but enterprise level api's become brittle when you rely on those. Need raw sql for better and more reliable performance.

4

u/strange-humor Apr 27 '18

ORMs are tunable and work for many things. I have no problem with this. Also most allow low level SQL access. What I'm talking about is basing your business objects on an ORM object.

We created DBs to deal with very slow disk access. It was a performance buffer. Now we have near infinite RAM in the form of SSDs. If the data storage is an interface to the system, this modification is simple. Otherwise, we are stuck in old models.