MENU

Fun & Interesting

Brett Slatkin - Refactoring Python: Why and how to restructure your code - PyCon 2016

PyCon 2016 64,559 9 years ago
Video Not Working? Fix It Now

Speaker: Brett Slatkin As programs gain complexity, it becomes harder to add features and fix bugs. Reorganizing code is an effective way to make programs more manageable. This talk will show you Pythonic ways to do the most imporant ""refactorings"": Extract variables with __nonzero__; Change signatures with *args and **kwargs; Extract fields and classes with @property; Create stateful closures with __call__; and more! Slides can be found at: https://speakerdeck.com/pycon2016 and https://github.com/PyCon/2016-slides

Comment