Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015
Video Statistics and Information
Channel: PyCon 2015
Views: 402,060
Rating: 4.9613309 out of 5
Keywords:
Id: wf-BqAjZb8M
Channel Id: undefined
Length: 52min 5sec (3125 seconds)
Published: Sat Apr 11 2015
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Just chiming in to say this guy is flipping awesome.
There's like 4 or 5 of his talks on youtube. If you're like me, you walk away from each one thinking damn, he answered so many questions I didn't even know I had. Answers that turn you into being a better, more pythonic, python programmer. As far as I can tell, his talks are uniquely targeted at all skill levels beginner, intermediate, advanced.
tldr Can't wait to watch this.
SPOILER WARNING: Man, when he showed the code cleanup example starting at 12:37, I immediately noticed the try: finally: and thought, "hmm, looks like we could use a 'with' here". Then the PEP8-ifying began and it distracted me so much that I completely forgot about the 'with'. Great example.
Best thing about PyCons: the Raymond Hettinger's videos.
Can confirm. Saw it in person - awesome talk!
Can someone explain what the "val" discussion was at 48:50?
His point about writing classes with proper destructors so you allow callers to use with() was rad. This applies to tons of code I write.
I've been writing Python code for years and never knew about @property to avoid having to write getters and setters.
Now instead of
I can do
And users of my class can simply do
Rather than
But what happens when a user assigns to ip_address?
great as always!
He is a very good speaker I watch all his talks and learned alot from them.