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

YouTube

When to Refactor Your Code into Generators and How

EuroPython Conference via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Discover how to refactor code into generators in this 28-minute conference talk from EuroPython 2022. Learn to identify situations where loop constructs with common fragments or excessive conditional code can be improved using generator functions. Explore techniques for combining custom generator functions with standard library tools and third-party packages to create more maintainable and Pythonic code. Follow along with practical examples, including refactoring Fibonacci sequence implementations into efficient generator pipelines. Gain insights on recognizing opportunities to apply this refactoring pattern for cleaner, DRY-compliant code that is easier to maintain and understand.

Syllabus

When to refactor your code into generators and how - presented by Jan-Hein Bührman

Taught by

EuroPython Conference

Reviews

Start your review of When to Refactor Your Code into Generators and How

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.