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. This video shows you why decorators can be dangerous, the biggest pitfalls to watch out for, and when you should actually use them.

  • Artyom@lemm.ee
    link
    fedilink
    arrow-up
    7
    ·
    23 hours ago

    Sometimes people get excited to write fancy code, when they should actually be excited to write simpler code.