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

YouTube

Writing Zenlike Python

EuroPython Conference via YouTube

Overview

Explore the principles of writing Pythonic code in this insightful EuroPython 2020 conference talk. Delve into Tim Peters's "Zen of Python" and discover how its twenty guiding principles can inform the creation of beautiful, maintainable code. Learn to work with Python's type system, statements, and iterative tools effectively, bridging the gap between functional and truly Pythonic code. Gain a deeper understanding of Python's design philosophy, including concepts like readability, explicitness, simplicity, and error handling. Ideal for developers transitioning from other languages, this talk empowers you to find the "One Obvious Way" to solve problems in Python, enhancing your ability to write elegant and efficient code.

Syllabus

Intro
The Zen of Python
The History of the Zen
Was Tim Serious?
Readability Readability counts.
Obvious There should be one -- and preferably only one -- obvious way to do it.
Beautiful Beautiful is better than ugly
Explicit Explicit is better than implicit
Namespaces Namespaces are one honking great idea -- let's do more of these!
Refuse to Guess In the face of ambiguity, refuse the temptation to guess
Simple
Complex Complex is better than complicated
Easy to Explain
Flat Flat is better than nested
Sparse Sparse is better than dense
Errors Errors should never pass silently
Explicitly Silenced Unless explicitly silenced
Special Cases Special cases aren't special enough to break the rules.
Practicality Although practicality beats purity

Taught by

EuroPython Conference

Reviews

Start your review of Writing Zenlike Python

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.