4 ms·
Just echoing what a lot of people here have said – I love Flask. It was the first time I ever could relax and just enjoy programming. It was beautiful, simple,
by gkoberger 4y ago
Just echoing what a lot of people here have said – I love Flask. It was the first time I ever could relax and just enjoy programming. It was beautiful, simple, easy, thoughtful. I had been programming for years, and it just felt like a breath of fresh air at the time.
- SOLAR_FIELDS 4y agoI’ve been working with it lately and I like that it (mostly) gets out of your way. There are a few ways to get yourself into a hole as a project grows with it but for the most part it’s tough to find a more concise way to have a simple and approachable REST app
- MonkeyMalarky 4y agoComing from Java, flask felt effortless. Import the package, tack on an annotation to whatever function you want and voila you have a rest api? Fantastic! Kind of helps that a lot of complexity is shoved into the application server like gunicorn though (which is equivalent to Java's Tomcat?).
- kitd 4y agoIronically, what you've written there applies to modern Java frameworks too.
- smolder 4y agoIn trivial cases you can, IME, make clean Java REST APIs with few hurdles and not much setup effort. Expand out from there to do something meaningful and you may find yourself dealing with a mess of boilerplate and complexity that exists for corner-cases no one cares about anymore, or possibly never did. I think the modern JVM is impressive, for sure, and how much they've improved the language, too, but am also consistently impressed with how much over-thought and quirkily-named Java-specific nonsense is out to waste my time whenever I work with it. That said, I should get caught up on the latest developments...
- int_19h 4y agoYou should also take a look at Bottle. It's like mini-Flask, except the library is a single .py file. Great for doing one-off web dashboards, embedded web UI etc. https://bottlepy.org/docs/dev/ https://bottlepy.org/docs/dev/
- ramraj07 4y agoThe only problem I have now is FastAPI is so much better I cannot justify continuing with flask :(
- calderwoodra 4y agowhat orm do you use with FastAPI?
- ramraj07 4y agoSqlalchemy, I just follow the pattern recommendation in the FastAPI tutorial.