May-15-2017, 06:15 PM
Two of my favorite Python program Flask and Click,use decorator heavily.
This make the user interface cleaner,
bye hiding away code that's not important for the task that user shall solve.
Eg:
This make the user interface cleaner,
bye hiding away code that's not important for the task that user shall solve.
Eg:
@app.route('/login', methods=['GET', 'POST']) def login(): .....
@click.command() @click.option('--count', default=1, help='Number of greetings.') def hello(count, name): .....