Skip to content

Aren't some of these a bit silly? #1

Closed

Description

@andybak

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...

Activity

  1. faif commented on Aug 6, 2012

    @faif
    Owner

    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.

  2. andybak commented on Aug 6, 2012

    @andybak
    Author

    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".

  3. added a commit that references this issue on Nov 16, 2014
  4. added a commit that references this issue on Jan 10, 2017
  5. added a commit that references this issue on Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions