First of all, one Python story to avoid violations of the rules. The decorator is just syntactic sugar. So
def printer(f):
def decorator(*args, **kwargs):
return f(*args, **kwargs)
return decorator
def add(x, y):
return x + y
"""
printer(add)(1, 2) # print(3)Be done
↑
@printer
def add(x, y):
return x + y
Equivalent to
"""
Small story so far
Below main ()
―― "Original pull-in" ―― "Humanities" -"JK" --"A beginner in programming"
These titles and headings are often unnecessary. Unless your program behaves differently depending on your age, gender, educational background, origin, and other attributes. (Referential transparency)
I'm not interested in you or the stories that happened around you. I'm interested in programming languages, software architectures, and other technologies. (Especially new technology!)
Qiita is not your notebook.
I don't want to see an article titled "Python Learning Day 2".
However, please share the points you stumbled upon in the process of learning the technology and the knowledge you gained! Don't forget the attractive titles.