5 ms·
The minimal implementation for the application side in Python is "flipflop". It calls your function, and you return a HTML string as a result. That's enough to
by Animats 9y ago
The minimal implementation for the application side in Python is "flipflop". It calls your function, and you return a HTML string as a result. That's enough to hook up a Python program as a web server.
Anything beyond that, such as input data parsing or generating HTML from a template or tree, should be a library, not a "framework". You might want multiple libraries from different sources.
- knrz 9y agoReading this reminds me of the Clojure style of code... anyone else?
- afghanPower 9y agoYeah, my first thought as well. The Rich Hickey spirit is leaking..
- sametmax 9y agoIt seems the entire Python community disagree, and made the monolithic Django the most popular framework. No the minimalist flask. Not the very composable pyramid. Django. And the reasons for that are: - choosing tools takes time and resources. - integrating them takes time and resources. - keep up to update the stack so it works well together takes time and resources. - multiple tools mean multiple docs. - you need to train your newcomers to your whole whole stack. - when you change project, you have to learn a new stack. - multiple tools won't be nearly as well integrated or full featured than the big framework. Have you tried flask-admin ? It's very far away from django-admin. - ecosystems build on common grounds. They assume they have tools, configurations, conventions. If you just use anything and everything, no third party tool car easily fit in your stack. E.G: django has a lot of nice libs around authentication because 3rd parties can rely on having a central User model. It's terribly unperfect, but it's really productive. - JS has this philosophy, and it's a terrible horrible no good messy pain.
- deleted 9y ago[deleted]
- seanp2k2 9y agoExpress has way more devs than all of the Python frameworks combined. JS is past, present, and future. This is what the job market looks like: https://www.dynatrace.com/blog/node-js-is-hitting-the-big-time-in-enterprise-markets/ https://www.dynatrace.com/blog/node-js-is-hitting-the-big-ti... On npm, expesss had 538,945 downloads in the last day https://www.npmjs.com/package/express https://www.npmjs.com/package/express http://blog.builtinnode.com/post/most-installed-packages-according-to-npm http://blog.builtinnode.com/post/most-installed-packages-acc... "Express is a very popular package with 160,809,503 downloads so far. It has a very steady growth, peaking in March with a little over 12 million downloads." Express was released November 16, 2010; Django was released July 21st 2005. https://trends.builtwith.com/framework https://trends.builtwith.com/framework shows PHP with 53 million sites, Express with 217K, and Django right under Visual Studio (wat) and ColdFusion with 59k. It really depends on what you're trying to do. Because so many JS frameworks for the browser integrate so nicely with Node, you can use stuff like Axios on both ends and only learn one API. Meteor is even nicer in this (write models once and use on both ends).
- sametmax 9y agoOut of topic man. We are talking about integration vs lib based.
- jazoom 9y agoI took that comment as meaning "the entire NodeJS community disagrees", in response to your opening statement.
- foo101 9y agoI think both integrated monolithic framework as well as microframework + library based web development have their place in software development. Most of my career, I have seen Flask to be popular wherever I worked, but I am well aware that Django is the most popular Python web development framework out there. It shows that there are all kinds of developers with their own preferences. Therefore both kinds of web development would remain popular. There is no one way framework or paradigm that can be the past, present and future. There are always multiple of them.