Transforming Code into Beautiful, Idiomatic Python
What it is
Raymond Hettinger's PyCon 2013 talk on transforming code into idiomatic Python through a series of before-and-after refactorings. It shows how to use iterators, dictionaries, named tuples and other language features well.
Why Hacker News recommends it
HN treats it as a must-watch classic for writing Pythonic code, though somewhat dated for modern Python.
- 9 people recommended it
- 9 different months
- 3 strong recommendations
- first 2014, last 2022
What HN commenters said
“Must watch”
Idiomatic Python talk relevant to comprehensions versus filter.
clusmore, 2017-01 · Strong recommendation · in “Origins of Python's “Functional” Features (2009)”
“I'm currently watching one of his videos [1] and it's amazing.”
Hettinger talk on writing idiomatic Python.
bhoeting, 2017-11 · Strong recommendation · in “Ask HN: Which programmer do you look up to?”
“the excellent talk "Transforming Code into Beautiful, Idiomatic Python".”
Excellent talk on simple, clean, thoughtful code with broad applicability.
jka, 2021-01 · Strong recommendation · in “Software engineering topics I changed my mind on”
“Halfway through and this one seems great so far”
Great Python talk with enjoyable style
kriro, 2014-03 · Recommendation · in “Python Language Features and Tricks”
“Great talk on avoiding some of the common pitfalls new python developers step in.”
Avoiding pitfalls and using nice language features
msvalkon, 2014-07 · Recommendation · in “Anti-Patterns in Python Programming”
“Topics include: 'looping' with iterators to avoid creating new lists, dictionaries, named tuples and more”
Hettinger's PyCon talk on iterators, dicts, named tuples and idiomatic Python.
shackenberg, 2014-11 · Recommendation · in “Python idioms I wish I'd learned earlier”
“Raymond Hettinger's talks are great.”
Classic 2013 Hettinger talk, though somewhat dated for modern Python.
kzrdude, 2021-05 · Recommendation · in “Writing Pythonic Rust”
“they are example-heavy and give a good insight to a very Pythonic mind.”
Example-heavy insight into Pythonic style.
greggyb, 2021-11 · Recommendation · in “Your users will do what you make easy”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: python, raymond hettinger, pycon, refactoring, best practices
Also recommended by the same people
demoBOLTR: KitchenAid Mixer. SURPRISE!AvE · 2 HN recommenders · 2017–2022
talkLinus Torvalds on why desktop Linux sucksgentooman · 5 HN recommenders · 2021–2026
talkRaymond Hettinger - Dataclasses: The code generator to end all code generators - PyCon 2018PyCon 2018 · 2 HN recommenders · 2018–2021
explainerWatch electricity hit a fork in the road at half a billion frames per secondAlphaPhoenix · 5 HN recommenders · 2024–2026
lectureLight Years Ahead | The 1969 Apollo Guidance ComputerTNMoC · 11 HN recommenders · 2021–2026
talkSQLite: The Database at the Edge of the Network with Dr. Richard HippMethod · 4 HN recommenders · 2017–2024
documentaryNetscape Mozilla Documentary 1998 - 2000 ProJect Code Rush - creative common licenceznoopy2k · 5 HN recommenders · 2011–2013
talkLichess founder Thibault Duplessis lectures on Lichess (2017)Lichess · 3 HN recommenders · 2020–2022