3 ms·
Coming 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
by MonkeyMalarky 4y ago
Coming 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/