Explore a captivating PyCon US talk that demonstrates the art of beautiful Python refactoring. Learn how to transform double-digit lines of code into concise, single-digit expressions. Discover techniques for identifying anti-patterns and replacing them with more expressive and declarative code. Gain insights into imports, data extraction, if statements, slicing, conditional expressions, and structural changes. Examine practical examples, including HTML table manipulation and performance considerations. Suitable for all skill levels, this presentation offers valuable strategies to enhance your daily coding practices and create more elegant Python solutions.
Overview
Syllabus
Introduction
Why this talk
How I started
Imports
Data Extraction
If Statement
Slicing
Conditional Expressions
Structural Changes
Step 2 HTML Table
Step 3 Code
Performance
Python Bites
Taught by
PyCon US