HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

Raymond Hettinger - Dataclasses: The code generator to end all code generators - PyCon 2018

PyCon 20182 HN recommenders · recommended in 2 months, 2018-2021
YouTube
130K views · 8 years ago · talk · evergreen

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.

Python, Ruby & scripting languages#python#dataclasses#raymondhettinger#codegeneration#attrs

4 comments from Hacker News

@kzrdude2021 · in “Writing Pythonic Rust”

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!

RecommendsView on HN
@sn92018 · in “Ask HN: Best talks of 2018?”

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.

RecommendsView on HN
@neuland2018 · in “Guide to Data Classes in Python 3.7”

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

CitesView on HN
@lunchladydoris2018 · in “Guide to Data Classes in Python 3.7”

I haven't watched it yet but I saw that Raymond Hettinger presented on data classes at PyCon last week [0]. [0]: ▶ this video

CitesView on HN
Transforming Code into Beautiful, Idiomatic Python48:51

Transforming Code into Beautiful, Idiomatic Python

Next Day Video
1.1M views • 13 years ago
Keynote - Preventing, Finding, and Fixing Bugs On a Time Budget | Raymond Hettinger @ PyBay201840:01

Keynote - Preventing, Finding, and Fixing Bugs On a Time Budget | Raymond Hettinger @ PyBay2018

SF Python
27K views • 8 years ago
The Mental Game of Python - Raymond Hettinger [synced version]1:10:00

The Mental Game of Python - Raymond Hettinger [synced version]

Tech Ma
24K views • 6 years ago
Modern Dictionaries by Raymond Hettinger1:07:41

Modern Dictionaries by Raymond Hettinger

SF Python
150K views • 9 years ago
The Mental Game of Python - Raymond Hettinger1:10:00

The Mental Game of Python - Raymond Hettinger

SF Python
131K views • 7 years ago
Raymond Hettinger, Keynote on Concurrency, PyBay 20171:13:53

Raymond Hettinger, Keynote on Concurrency, PyBay 2017

SF Python
161K views • 9 years ago
James Powell: So you want to be a Python expert? | PyData Seattle 20171:54:11

James Powell: So you want to be a Python expert? | PyData Seattle 2017

PyData
508K views • 9 years ago
Stop Writing Classes27:29

Stop Writing Classes

Next Day Video
962K views • 14 years ago
Jake Vanderplas - Statistics for Hackers - PyCon 2016.mp440:45

Jake Vanderplas - Statistics for Hackers - PyCon 2016.mp4

PyCon 2016
93K views • 10 years ago
Armin Ronacher - A Python for Future Generations42:44

Armin Ronacher - A Python for Future Generations

EuroPython Conference
6K views • 9 years ago
A Talk Near the Future of Python (a.k.a., Dave live-codes a WebAssembly Interpreter)1:01:45

A Talk Near the Future of Python (a.k.a., Dave live-codes a WebAssembly Interpreter)

David Beazley
26K views • 7 years ago
Google Developers Day US - Python Design Patterns44:03

Google Developers Day US - Python Design Patterns

GoogleDeveloperDay
90K views • 19 years ago
Hillel Wayne - Beyond Unit Tests: Taking Your Testing to the Next Level - PyCon 201829:21

Hillel Wayne - Beyond Unit Tests: Taking Your Testing to the Next Level - PyCon 2018

PyCon 2018
38K views • 8 years ago
David Beazley - Lambda Calculus from the Ground Up - PyCon 20193:26:34

David Beazley - Lambda Calculus from the Ground Up - PyCon 2019

PyCon 2019
52K views • 7 years ago
What nobody tells you about documentation30:52

What nobody tells you about documentation

PyCon AU
105K views • 9 years ago
Google Python Class Day 1 Part 151:37

Google Python Class Day 1 Part 1

Google for Developers
3.7M views • 16 years ago
Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 201832:17

Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 2018

PyCon 2018
30K views • 8 years ago
"Hedy: A Gradual programming language" by Felienne Hermans (Strange Loop 2022)40:57

"Hedy: A Gradual programming language" by Felienne Hermans (Strange Loop 2022)

Strange Loop Conference
17K views • 4 years ago
Keynote: Begin...End?57:05

Keynote: Begin...End?

David Beazley
9K views • 5 years ago
Compiling and Optimizing Scripting Languages1:01:37

Compiling and Optimizing Scripting Languages

Google TechTalks
21K views • 17 years ago