Snippets tagged Design Patterns

  • Factory Pattern

    Factory pattern in F#

    57 people like this
    Posted: 9 months 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.

    35 people like this
    Posted: 9 months ago by Tao Liu

  • Proxy Pattern

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

    37 people like this
    Posted: 9 months ago by Tao Liu

  • Chain of responsibility II

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

    79 people like this
    Posted: 8 months ago by Tao Liu

  • Command pattern for Redo-Undo II

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

    58 people like this
    Posted: 8 months ago by Tao Liu

  • Strategy pattern

    Strategy pattern in F#

    59 people like this
    Posted: 9 months 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.

    34 people like this
    Posted: 6 months ago by Tao Liu