The Hidden Dangers of Python Decorators
About
No channel description available.
Latest Posts
Video Description
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. Python decorators look like a great way to add functionality—until they break your type safety, hide function requirements, and turn debugging into a nightmare. In this video, I’ll show you why decorators can be dangerous, the biggest pitfalls to watch out for, and when you should actually use them. 🔥 GitHub Repository: https://git.arjan.codes/2025/decorators. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:25 What Is a Python Decorator? 1:50 How to Write Your Own Decorator 5:26 Problem 1: The Order of Decorators Can Cause Unexpected Bugs 8:20 Problem 2: Decorators Can Break Code Analysis and Typing 10:18 Problem 3: Hidden Function Requirements 13:19 Other Issues with Decorators 14:17 Final Thoughts 14:44 Outro #arjancodes #softwaredesign #python
Master Python with These Essential Tools
AI-recommended products based on this video

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers




















