Decorators Are Great! Act Now!!9:10am - 9:40am on Saturday, October 3 in Online
Have you ever seen those “@” tags on top of Python functions and classes? Those are decorators - functions that wrap around other functions. Decorators are one of Python’s niftiest language features, and they help programmers write DRY (Don’t Repeat Yourself) code.
But wait, there’s more! In this “infomercial,” we’ll learn all about decorators:
- How they wrap functions
- How to write our own decorators
- How to do cool tricks with arguments, classes, and nesting
- How to decide when decorators are (and aren’t) the right solution
Once you learn how they work and how to write your own, you’ll wonder how you ever lived without them. Act now to use them today!!