• Description
  • Curriculum
  • FAQ
  • Reviews

Welcome to the best and most complete guide to Python decorators!

In this course, you will cultivate a deep and practical understanding of decorators in Python, starting from the very basics. This beginner-friendly course is meticulously crafted to ensure you build a solid foundation from scratch while also getting ample practice in the process.

Before diving into decorators, we’ll explore the fundamental principles that serve as the building blocks of this intriguing topic. You’ll gain a deep understanding of higher-order functions, closures, and first-class functions – prerequisites that unlock the magic of decorators. Foundational topics include:

  • Closures

  • First-Class Functions

  • Variadics

  • Higher Order Functions

Once we have established a solid grasp of these functional foundations, we’ll dive into the captivating world of decorators. We’ll start with a gentle introduction and gradually move towards more intricate techniques. Our exploration of decorators will include:

  • Basic Decorators

  • Decorating Parameterized Functions

  • Chaining Decorators

  • Decorating Functions With Variable Arity

  • Preserving Metadata of Decorated Functions

But that’s not all! Each concept will be reinforced through engaging coding assignments of increasing difficulty. Throughout the course, will also explore several skill challenges inspired by real-world scenarios including:

  • Logging Function Output

  • Timing Runtime Performance

  • Using Decorators In Mocked Authentication Flows

  • Creating Cache Mechanisms

This course is tailored specifically for Python programmers interested in deepening their understanding of decorators as a gateway to functional programming or as a standalone, intermediate-level programming pattern.

See you inside!

How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.69
83 reviews
Stars 5
52
Stars 4
27
Stars 3
3
Stars 2
0
Stars 1
1