Skip to content
0:00 / 0:00

#python#designpatterns#alexmartelli

Google Developers Day US - Python Design Patterns

GoogleDeveloperDay

3.4K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 on Hacker News.
  • A classic. People kept recommending it from 2011 to 2016.
  • Presented by Alex Martelli, Uber Tech Lead at Google

Intermediate. Assumes working knowledge.

90K views19 years ago2 recommendations

Programming languagesSoftware designPythonDesign patternsObject-oriented design

Alex Martelli explores classic design patterns and explains how they should be implemented in Python to leverage the language's strengths.

Python Design Patterns Alex Martelli Design Patterns must be studied in the context on the language in which they'll get implemented -- the Gang of Four made that point strongly in their book, though almost everybody else seems not to have noticed. This talk explores some "classic" DPs in all the various categories -- Creational, Structural, and Behavioral -- studying how they show up in Python programs and how they interact with Python's special strengths. Speaker Bio:Alex Martelli is Uber Tech Lead (Production Systems) at Google. Alex is the author of "Python in a Nutshell", co-editor of the "Python Cookbook", a Member of the Python Software Foundation, and winner of the 2002 Activators' Choice Award and 2006 Frank Willison award for outstanding contributions to the Python community. (more)

Why it's here

2 people recommend this

What people say. Recommended as an excellent, level-headed guide to understanding design patterns specifically in the context of Python.

irahulon Hacker News • Recommends

On “Design Patterns in Python (Free Book)”

I looked at couple of them. Some of the patterns has a note mentioning it is a port of C#/Java/C++ implementation in the Wikipedia article. Python is drastically different from C#/Java/C++, and a direct port of classical patterns won't make much sense. It will work, but it will the equivalent of Fortran programmers writing Frotran in Python. If anyone is interested, this talk by Alex Martelli is a good starting point: link to this video I think Bruce Eckel was writing a book on "Design Patterns" in Python, but that's not completed. However, there is a book using Ruby, which shows the classical approach for implementing design patters, then shows how it is done in Ruby: link

irahulon Hacker News • Recommends

On “Books Programmers Don't Really Read But Recommend”

…ooks. The other books on the "have read" list are on my "don't bother reading" list. Code Complete, Pragmatic Programmer, Mythical Man Month et al aren't my kind of books. As far as design patterns go, I believe if you code in Python/Ruby/Perl etc, books covering them in Java/C++ are needlessly verbose and boring. I recommend Alex Martelli's talks link to this video link And this book which covers design patterns using Ruby. link Both approaches actually show you practical examples of design patterns in the standard library or real world problems, and shuns patterns which aren't applicable to the language or are too trivial. These talks aren't the end-all, but they will give you a good overall know…

omginternetson Hacker News • Recommends

On ““Design Patterns” Aren't (2002)”

In a similar vein, I found Alex Martinelli's talk on design patterns very level-headed and instructive: link to this video

irahulon Hacker News • Mentions

On “OOP Isn't a Fundamental Particle of Computing”

…ble and proven design patterns if you're just passing around dictionaries of dictionaries and lists. Translating proven, classical design patterns to Python or Ruby will result in shitty code. The proven design patterns don't have to be the same for all languages. It's idiomatic to use dictionaries/list in place of classes where applicable. link link to this video link…

andrixon Hacker News • Mentions

On “Design Patterns in Dynamic Languages (1996)”

Cool. I'll take a look at the book. I was specifically interested in Python design patterns. I still remember the talk from Alex Martinelli at Google: link to this video , and I just saw there is an updated version: link