Design patterns can be very useful in Python. But how do you know which patterns to choose, and the right and wrong ways to implement them? This advanced tutorial offers many practical examples of the good, the bad, and the beautiful methods for solving problems in Python with design patterns. You'll also learn some of the theory that underpins them.
This video covers both "classical" patterns from Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional) and variations used specifically for Python, such as Borg vs. Singleton, Template Method, and Dependency Injection.
"Practical Python Programming: Callbacks" captures one of the popular tutorial sessions presented at OSCON 2010, the O'Reilly Open Source Convention held in Portland, Oregon, in July. Other videos of OSCON 2010 sessions include:
Automated Infrastructure is on the Menu with Chef
Building a NoSQL Data Cloud
Cooking with jQuery
Django Deployment Workshop
Hands-on Cassandra
Introduction to Django
Observing and Optimizing your Application with DTrace
Alex Martelli spent 8 years with IBM Research, winning three Outstanding Technical Achievement Awards. He then spent 13 as a Senior Software Consultant at think3 inc, developing libraries, network protocols, GUI engines, event frameworks, and web access frontends. He has also taught programming languages, development methods, and numerical computing at Ferrara University and other venues. He's a C++ MVP for Brainbench, and a member of the Python Software Foundation. He currently works for AB Strakt, a Python-centered software house in G teborg, Sweden, mostly by telecommuting from his home in Bologna, Italy. Alex's proudest achievement is the articles that appeared in Bridge World (January/February 2000), which were hailed as giant steps towards solving issues that had haunted contract bridge theoreticians for decades.