YoVDO

Writing Beautiful Code

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Python Courses Code Readability Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the art of crafting elegant and maintainable Python code in this 25-minute EuroPython Conference talk by Anand Chitipothu. Discover practical techniques for enhancing code readability, including proper variable naming, minimizing nesting, effective use of whitespace, and strategic commenting. Learn how to apply time-tested principles of beautiful code writing through real-world Python examples. Gain insights into avoiding common pitfalls, handling errors efficiently, and suppressing unnecessary implementation details. Master the skills to create code that is not only functional but also a joy to read, understand, and maintain.

Syllabus

Intro
Who is speaking?
Avoid Generic Names
Avoid Abbreviations
Avoid using datatype as name
Nouns & Verbs
Use plural for a list
Reserve Loop Indexes
Example 1
Similar names
Don't say the obvious
Explain why you made that choice
Document special cases
Make Comments Redundant
Divide & Conquer
The 7
Avoid too many nested levels
Handle errors separately
Suppress the implementation details
Summary


Taught by

EuroPython Conference

Related Courses

A Brief History of Data Storage
EuroPython Conference via YouTube
Breaking the Stereotype - Evolution & Persistence of Gender Bias in Tech
EuroPython Conference via YouTube
We Can Get More from Spatial, GIS, and Public Domain Datasets
EuroPython Conference via YouTube
Using NLP to Detect Knots in Protein Structures
EuroPython Conference via YouTube
The Challenges of Doing Infra-As-Code Without "The Cloud"
EuroPython Conference via YouTube