Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Write More Decorators - And Fewer Classes

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a pattern for designing clean and Pythonic interfaces by replacing single-method classes with decorated functions in this EuroPython 2017 conference talk. Learn how this approach, already used by frameworks like Pyramid, can lead to simpler, more beautiful, and easier-to-understand code. Examine a real-world example from Yelp's internal log processing framework to see how combining classes, functions, and decorators can create optimal programming interfaces. Gain insights into leveraging Python decorators for a more functional approach, while understanding when classes are truly useful. Intended for developers familiar with Python constructs, including decorators, this code-oriented presentation promises to demonstrate the power of this pattern through practical examples.

Syllabus

Antonio Verardi - Write more decorators (and fewer classes)

Taught by

EuroPython Conference

Reviews

Start your review of Write More Decorators - And Fewer Classes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.