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.
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.
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.
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.
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.