AI, Data Science & Cloud Certificates from Google, IBM & Meta
PowerBI Data Analyst - Create visualizations and dashboards from scratch
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
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