3 ms·
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 https://www.y
by kzrdude 5y ago
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 https://www.youtube.com/watch?v=T-TwcmT6Rcw https://www.youtube.com/watch?v=T-TwcmT6Rcw (Dataclasses! We could cheekily say Python gets better at something Rust does - dataclasses makes Python better at records.)
And https://www.youtube.com/watch?v=S_ipdVNSFlo https://www.youtube.com/watch?v=S_ipdVNSFlo
This talk (2013): https://www.youtube.com/watch?v=OSGv2VnC0go https://www.youtube.com/watch?v=OSGv2VnC0go Unfortunately this video is now a bit out of touch with modern Python.
Another (2013) classic: https://www.youtube.com/watch?v=HTLu2DFOdTg https://www.youtube.com/watch?v=HTLu2DFOdTg 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!
- dec0dedab0de 5y agoAnother by Raymond Hettinger that is fantastic. Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015 https://www.youtube.com/watch?v=wf-BqAjZb8M https://www.youtube.com/watch?v=wf-BqAjZb8M
- kzrdude 5y agoThis is the best one :)
- fnord123 5y ago> Dataclasses! We could cheekily say Python gets better at something Rust does - dataclasses makes Python better at records It's not clear if you mean python got better at storing records than previous python or if it got better at storing records than rust. To be clear, dataclasses make python better at storing records than what was previously available in python but still not as good as Rust (serde, immutable defaults, no perf penalty with immutability).