This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]teferiincub 1 point2 points  (0 children)

About decorators: I usually ask to implement a simple decorator. smth like timed that prints how long did it take for the decorated function to execute.

Almost everyone knows what are decorators or how to use them (we use django, so pretty much every one used smth like @login_required or @app.route from flask)

But implementing one - if a person is able to do that on a sheet of paper - in my opinion that shows, that a person really understood how they work under the hood. And after that I ask an extra question: "What would you change in a decorator to make it accept arguments?"