Aspect-oriented Programming in Python

Speakers:

Dr. Mike Müller (CEO und Trainer, Python Academy GmbH & Co. KG)

Scheduled time: Sunday, 10:00 - Room W1 - Duration 180 Min.

The aspect-oriented programming paradigm can support the separation of
cross-cutting concerns such as logging, caching, or checking of permissions.
This can improve code modularity and maintainability.
Python offers decorator to implement re-usable code for cross-cutting tasks.

This tutorial is an in-depth introduction to decorators.
It covers their usage and how to implement simple and more advanced
solutions.
Use cases demonstrate how to work apply aspect-oriented programming.
In addition to showing how functions can use closures to create decorators,
the tutorial introduces callable class instances as alternative.
Use cases for class decorators show how to replace metaclasses and simplify
meta-programming tasks.

While the focus is on best practices and practical applications, the tutorial
also provides deeper insight how Python works behind the scenes.
After the tutorial participants will feel comfortable writing production-ready
decorators.

Desired previous knowledge: This tutorial is for intermediate Python programmers who want to dive deeper.
Solid working knowledge of functions and classes is required.

Further information: Short paper

Application deadline was at 18.03.2025