Raymond Hettinger - Dataclasses: The code generator to end all code generators - PyCon 2018
PyCon 20182 HN recommenders · recommended in 2 months, 2018–2021
talk · intermediate · evergreen · 2018–2021 on HN
Raymond Hettinger explains Python's dataclasses module, showing the problem it solves and its key design decisions. He places it in a progression from tuples and dicts through named tuples and attrs.
HN commenters recommend it as an approachable talk from a respected Python core developer on dataclasses.
Up next
3 mo on HNBuilding pi in a World of Slop — Mario Zechner
AI Engineer
3 HN recommender · 2026–2026
5 mo on HNWatch electricity hit a fork in the road at half a billion frames per second
AlphaPhoenix
5 HN recommender · 2024–2026
9 mo on HNTransforming Code into Beautiful, Idiomatic Python
Next Day Video
9 HN recommender · 2014–2022
11 mo on HNLight Years Ahead | The 1969 Apollo Guidance Computer
TNMoC
11 HN recommender · 2021–2026
4 mo on HNSQLite: The Database at the Edge of the Network with Dr. Richard Hipp
Method
4 HN recommender · 2017–2024
11 mo on HNRepublic, Lost | Lawrence Lessig | Talks at Google
Talks at Google
10 HN recommender · 2011–2017
3 mo on HNHillel Wayne - Beyond Unit Tests: Taking Your Testing to the Next Level - PyCon 2018
PyCon 2018
3 HN recommender · 2018–2023
10 mo on HNThe Coming Collapse of the Middle Class with Elizabeth Warren
University of California Television (UCTV)
10 HN recommender · 2008–2022
18 mo on HNRuby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich
Confreaks
17 HN recommender · 2013–2026
16 mo on HNThe spelled-out intro to neural networks and backpropagation: building micrograd
Andrej Karpathy
17 HN recommender · 2022–2025
16 mo on HNHow Python was Shaped by leaky Internals, Armin Ronacher, Flask framework
Видео с мероприятий {speach!
15 HN recommender · 2017–2025
15 mo on HNRailsConf 2014 - All the Little Things by Sandi Metz
Confreaks
15 HN recommender · 2015–2025
4 comments from Hacker News
Raymond Hettinger's talks are great. I know it's not a succint blog post, but they are out there are watching a video is very approachable. Maybe ▶ this video (Dataclasses! We could cheekily say Python gets better at something Rust does - dataclasses makes Python better at records.) And link This talk (2013): link Unfortunately this video is now a bit out of touch with modern Python. Another (2013) classic: link it is very well known, and it has the very memorable advice: what's a class that only has one method? That should be a function!
Some of my favorite talks from Strange Loop: * Contracts For Getting More Programs Less Wrong: link * "It's Just Matrix Multiplication": Notation for Weaving: link * Hackett: a metaprogrammable Haskell: link * Git from the Ground Up: link From PyCon: * Beyond Unit Tests: Taking Your Testing to the Next Level: link * Dataclasses: The code generator to end all code generator: ▶ this video * Automating Code Quality: link There are probably more I might add later as I remember them.
I haven't watched it yet but I saw that Raymond Hettinger presented on data classes at PyCon last week [0]. [0]: ▶ this video
The standard library is not going to have more advanced features than what the community can do, if only because of the release cycle. Meanwhile, I was not a user of attrs before, rather I used collections.namedtuple and then typing.NamedTuple. So, data classes is a win for me and other people like me who weren't using attrs. And you can continue to use attrs without being bothered at all. In Raymond Hettinger's talk [0] at PyCon 2018, he even says that more features from attrs will likely get added, such as data validation [1]. And that his talk was the one chance for the developer (Eric Smith) to get praise, because everyone is going to instantly second guess every decision he made. [0] ▶ this video [1] see 42:36 on future directions