You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I struggle to see the point of some of these patterns. They strike me as overly verbose implementations of things that are practically free in a dynamic language with first-class functions. I'm looking at YOU strategy pattern...
I see Design Patterns as useful communication tools. Thus although some of them are too verbose for a language like python, they form a nice way of sharing ideas and code between developers. Regarding the strategy pattern, it actually uses exactly what you mention (functions as first class citizens), which is either not supported or is weakly supported in other languages.
re: Strategy pattern. Yes it does, but what's does all that class boilerplate add?
Must admit I haven't been through more than a few of the patterns. But I didn't feel they added much to my understanding of design patterns in Python other than to make me ask "Why would you bother".
Activity
faif commentedon Aug 6, 2012
Hi andybak,
I see Design Patterns as useful communication tools. Thus although some of them are too verbose for a language like python, they form a nice way of sharing ideas and code between developers. Regarding the strategy pattern, it actually uses exactly what you mention (functions as first class citizens), which is either not supported or is weakly supported in other languages.
andybak commentedon Aug 6, 2012
re: Strategy pattern. Yes it does, but what's does all that class boilerplate add?
Must admit I haven't been through more than a few of the patterns. But I didn't feel they added much to my understanding of design patterns in Python other than to make me ask "Why would you bother".
Merge pull request #1 from faif/master
Structural rearrangements faif#1
Merge pull request #1 from faif/master