Aspect-oriented Programming in Python

Referierende:

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

Termin: Sonntag, 10:00 - Raum W1 - Dauer 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.

Erwünschte Vorkenntnisse: This tutorial is for intermediate Python programmers who want to dive deeper.
Solid working knowledge of functions and classes is required.

Weitere Informationen: Kurz-Paper

Anmeldeschluss war am 18.03.2025