Design Template Crib


    Translation of a pdf file from the site http://www.mcdonaldland.info/ with a description of 23 GOF design patterns . Each item contains a [very] short description of the pattern and a UML diagram. The cheat sheet itself is available in pdf, in the form of two png files (as in the original), and in the form of 23 separate parts of images. For the most impatient - all the files at the end of the article .

    Under the cut - a lot of pictures.


    Legend


    Relationship between classes


    • - aggregation (aggregation) - describes the relationship "part" - "whole", in which "part" can exist separately from the "whole". The rhombus is indicated by the "whole".

    • - composition — a subspecies of aggregation in which “parts” cannot exist separately from the “whole”.

    • - dependence (dependency) - a change in one entity (independent) can affect the state or behavior of another entity (dependent). An arrow indicates an independent entity.

    • - generalization (generalization) - the relation of inheritance or implementation of the interface. On the arrow side is the superclass or interface.


    Types of patterns


    • - behavioral (behavioral);

    • - generators (creational);

    • - structural (structural).



    Template List


    Guardian (memento)


    Chain of responsibility


    Observer


    Command


    State


    Interpreter


    Strategy


    Iterator


    Template method


    Mediator


    Visitor


    Adapter


    Proxy


    Bridge


    Abstract factory


    Linker (composite)


    The builder


    Decorator


    Factory method


    Facade


    Prototype


    Adaptive (flyweight)


    Singleton


    Files


    • all patterns in a pdf file .
    • same thing, but in png - 1 and 2 parts.
    • archive with sliced ​​images.


    Upd. original pdf and images ( 1 , 2 ).

    PS At the request of "design patterns" 636 topics, but no hub; and on bitcoin, there are 278 topics and a hub. Please restore justice!

    Polls

    Only registered users can participate in the survey. Please come in.

    Should I continue to translate cheat sheets?

    • 95.7% Yes 3836
    • 4.2% No 172

    Do I need a hub for patterns?

    • 84.9% Need 3290
    • 15% don't need 583

    Also popular now: