HackerTube

THE VIDEO SHELF · idiomatic python

Transforming Code into Beautiful, Idiomatic Python

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 HN readers recommended it

HN treats it as a must-watch classic for writing Pythonic code, though somewhat dated for modern Python.

This is a summary from the source dataset, not an endorsement by Hacker News or the video creator.

Video & recommendation details

Creator / channel
Next Day Video
Topic
idiomatic python
Format
talk
Level
intermediate
HN recommenders in dataset
9
HN mentions in dataset
13
Recommendation years in dataset
2014–2022

These counts and years describe the included Hacker News records; they are not YouTube views or the video’s publication date.

From the original HN conversations

Excerpts from the recorded comments. Follow each source for the full comment and surrounding discussion.

  • Must watch: [VIDEO] I believe that the list comprehension will be faster than filter, but as always, any time you replace readable code with unreadable code for performance reasons, you damn well better time it.

    clusmore on Hacker News · 2017-01
    In Origins of Python's “Functional” Features (2009)
  • I've never heard of Raymond Hettinger before but I'm currently watching one of his videos [1] and it's amazing. Thanks for sharing your list, I'll definitely look up some more of these people. [1] [VIDEO]

    bhoeting on Hacker News · 2017-11
    In Ask HN: Which programmer do you look up to?
  • Your mention of simple and clean code makes me think of the excellent talk "Transforming Code into Beautiful, Idiomatic Python". Although it relates to Python programming, if the ideas and principles (and thoughtfulness and pace) from it could be applied to much more written code, …

    jka on Hacker News · 2021-01
    In Software engineering topics I changed my mind on

Summaries, classifications and recommendation records are from the HackerTube source dataset. Read about this library and its limitations.