Google Developers Day US - Python Design Patterns

GoogleDeveloperDay · 90K views · 2007 · 44:03

Open on YouTube

Software architecture & designPython, Ruby & scripting languagestalk

Why Hacker News recommends it

HN commenters recommend it as a level-headed, practical take on design patterns without Java-style verbosity.

What it is

Alex Martelli's Google Developers Day talk on classic design patterns (creational, structural and behavioral) and how they appear in Python. He stresses that patterns must be studied in the context of the implementing language.

Recommended by 2 HN commenters across 3 different months, 2011 to 2020.

What Hacker News said

Recommends irahul · 2011-12 · 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: [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]

Recommends irahul · 2012-03 · on “Books Programmers Don't Really Read But Recommend”

Among the books "programmers have read", I have read K&R, Programming Pearls and bits and pieces of Effective Java and C++. I thoroughly enjoyed these books. 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 [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, a

Recommends omginternets · 2016-11 · on ““Design Patterns” Aren't (2002)”

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

Cites irahul · 2012-11 · on “OOP Isn't a Fundamental Particle of Computing”

>> I use lists and strings and arrays with no concern about how many elements they contain or where the memory comes from. > You should worry. If you don't want your server or your app to run slow, you should worry about these things. I am pretty sure he is saying he doesn't have to manually allocate and free memory and worry about off by one errors when iterating. He is comparing equivalents; he isn't saying since I am using Python I can shove 1 billion numbers in a list. > Can you imagine going into a programming interview and saying something like this? The only occasion when programming interviews have any significance is when you are seeking a job. Using them as a benchmark for anything

Cites andrix · 2020-03 · 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: [this video] , and I just saw there is an updated version: [LINK]