A fast-paced session meant for experienced coders, this tutorial focuses mostly on the practical issues of choosing appropriate Design Patterns for the purpose of solving problems in Python, and how best to code in accordance with those patterns; and only secondarily on the theoretical underpinnings of the endeavor (just enough to provide guidance for making practical choices in other cases not directly covered in the tutorial).
Design Patterns are shaped, among other things, by the “forces” (constraints, desires, opportunities) in play—and the technologies chosen for implementation (such as, the programming languages to be used) are a strong component of those “forces”. Therefore, appropriate choice of patterns, and implementation thereof, in Python, is going to be different from what it would be in other languages (such as C++, or Java).
The talk covers both “classical” patterns from the “Gang of 4” book, and Pythonic variations thereof (such as Borg vs Singleton, and Template Method in its many Pythonic incarnations) and other important ones such as Dependency Injection.
Alex Martelli wrote “Python in a Nutshell” and co-edited “Python Cookbook”. He’s a PSF member, and won the 2002 Activators’ Choice Award and the 2006 Frank Willison Award for contributions to the Python community. He works as Senior Staff Engineer for Google. You can read some PDFs and watch some videos of his past presentations.
Comments on this page are now closed.
For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at scordesse@oreilly.com
Download the OSCON Sponsor/Exhibitor Prospectus
Download the Media & Promotional Partner Brochure (PDF) for information on trade opportunities with O'Reilly conferences or contact mediapartners@ oreilly.com
For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com
To stay abreast of conference news and to receive email notification when registration opens, please sign up for the OSCON Newsletter (login required)
Have an idea for OSCON to share? oscon-idea@oreilly.com
View a complete list of OSCON contacts
Comments
Lots of practical guidance and advice at a sufficiently advanced level. Thanks Alex.