Snippets tagged Design Patterns

  • Factory Pattern

    Factory pattern in F#

    68 people like this
    Posted: 1 years ago by Tao Liu

  • Decorate pattern

    implement the decorate pattern in F#. The decorate pattern is to add new featuures to an object at runtime.

    36 people like this
    Posted: 1 years ago by Tao Liu

  • Proxy Pattern

    Proxy pattern is a class functioning as an interface to something else.

    37 people like this
    Posted: 1 years ago by Tao Liu

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    93 people like this
    Posted: 1 years ago by Tao Liu

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    60 people like this
    Posted: 1 years ago by Tao Liu

  • Strategy pattern

    Strategy pattern in F#

    68 people like this
    Posted: 1 years ago by Tao Liu

  • Template pattern

    Template pattern is a behavior-based pattern. Realized the importance of high order function, this is a way to use high order function. Still keep the type structure to organize my code.

    38 people like this
    Posted: 1 years ago by Tao Liu