Python Decorators: Gift or Poison?

The talk will explain basics of Python Decorators, will show lots of examples and use cases, as well as for a beginner, as for an experienced developer.

Tags: Python

Scheduled on friday 14:00 in room media


Anastasiia Tymoshchuk

Anastasiia originally came from Ukraine, working in Berlin since April 2016. Her first Python project was - to create automation testing framework from scratch for LG Smart TV (using Python 2.7 and Django). Working in the development for almost of 7 years (around 5 years in Python), including experience in e-commerce as well as game development. Every day she is dealing with lots of challenges when she has to consider software or library to start with, starting from the question how to build architecture and finishing with a deployment. She has also a great experience in the design and development of the project from scratch to production.

Elena is a Digital Designer from Ukraine, currently working in Berlin for a company named Fonpit. Through the years of hands-on experience she made her way from an artist to digital designer, she tried herself as an entrepreneur, events host and teacher.
She believes that principles of design are reflected in the most natural aspects of our daily lives and that the design techniques should be applied also in the work of non-designers to create harmony in their workflow and vision.


Why would you ever need to use decorators in Python? Have you ever had the task when you need to use one function in few places and you really wanted to avoid of code duplicating? For example to add some logging into functions or timers, etc. Decorators in Python are super powerful with these tasks, but at the same time they are super complicated, sometimes even magical. When I started learning Python, Decorators were really like a magic: how to use them, how are they working, lots of questions. The goal is to make the things easier and clear to answer a question: to use or not to use Decorators in your project.