|
|
|
|
|
by phamilton
5202 days ago
|
|
Whoa.. backlash. The intention wasn't to diss Flask. It is a very concise and useful framework. All the comments apply to my original comparison. public static void main(..){
System.out.println("Hello World");
}
really isn't much more verbose than print "Hello World"
yet every tutorial on a new language points out how frustrating it is for someone learning the language to type "public" "static" "void" "System" and other keywords/objects/modules without having any idea what they mean just to do something simple.In Flask I need to instantiate the Flask app, define a function to run and decorate it with a route. That raises all sorts of questions about what a decorator is (which for a casual pythonist may or may not be something they understand - I know my understanding of decorators is sketchy at best). Then I need to explicitly call app.run() somewhere. In Sinatra, the DSL makes it much simpler. If I receive a "get '/'" request, then "do" the following stuff. "end". Flask is very concise. No doubt about it. It's stripped down to it's very minimum. Yet Sinatra manages to be even simpler, which is impressive to me. |
|