[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
@Design-pattrns

Design patterns

Design Patterns are very popular among software developers. A design pattern is a well described solution to a common software problem.

Popular repositories Loading

  1. Adapter-Pattern Adapter-Pattern Public

    Adapter design pattern is one of the structural design pattern and it’s used so that two unrelated interfaces can work together. The object that joins these unrelated interface is called an Adapter.

    Java 9

  2. Singleton-Pattern Singleton-Pattern Public

    Singleton pattern restricts the instantiation of a class and ensures that only one instance of the class exists in the java virtual machine. It seems to be a very simple design pattern but when it …

    Java 4

  3. Builder-Pattern Builder-Pattern Public

    Builder pattern was introduced to solve some of the problems with Factory and Abstract Factory design patterns when the Object contains a lot of attributes. There are three major issues with Factor…

    Java 4

  4. Prototype-Pattern Prototype-Pattern Public

    Prototype pattern is one of the Creational Design pattern, so it provides a mechanism of object creation. Prototype pattern is used when the Object creation is a costly affair and requires a lot of…

    Java 2

  5. Factory-Pattern Factory-Pattern Public

    Factory design pattern is used when we have a super class with multiple sub-classes and based on input, we need to return one of the sub-class. This pattern take out the responsibility of instantia…

    Java

  6. Abstract-Factory-Pattern Abstract-Factory-Pattern Public

    In the Abstract Factory pattern, we get rid of if-else block and have a factory class for each sub-class. Then an Abstract Factory class that will return the sub-class based on the input factory cl…

    Java 1

Repositories

Showing 6 of 6 repositories
  • Adapter-Pattern Public

    Adapter design pattern is one of the structural design pattern and it’s used so that two unrelated interfaces can work together. The object that joins these unrelated interface is called an Adapter.

    Design-pattrns/Adapter-Pattern’s past year of commit activity
    Java 9 0 0 0 Updated Dec 21, 2018
  • Singleton-Pattern Public

    Singleton pattern restricts the instantiation of a class and ensures that only one instance of the class exists in the java virtual machine. It seems to be a very simple design pattern but when it comes to implementation, it comes with a lot of implementation concerns. The implementation of Singleton pattern has always been a controversial topic…

    Design-pattrns/Singleton-Pattern’s past year of commit activity
    Java 4 0 1 0 Updated Dec 20, 2018
  • Prototype-Pattern Public

    Prototype pattern is one of the Creational Design pattern, so it provides a mechanism of object creation. Prototype pattern is used when the Object creation is a costly affair and requires a lot of time and resources and you have a similar object already existing. So this pattern provides a mechanism to copy the original object to a new object a…

    Design-pattrns/Prototype-Pattern’s past year of commit activity
    Java 2 0 0 0 Updated Dec 9, 2018
  • Builder-Pattern Public

    Builder pattern was introduced to solve some of the problems with Factory and Abstract Factory design patterns when the Object contains a lot of attributes. There are three major issues with Factory and Abstract Factory design patterns when the Object contains a lot of attributes.

    Design-pattrns/Builder-Pattern’s past year of commit activity
    Java 4 0 0 0 Updated Dec 6, 2018
  • Abstract-Factory-Pattern Public

    In the Abstract Factory pattern, we get rid of if-else block and have a factory class for each sub-class. Then an Abstract Factory class that will return the sub-class based on the input factory class. At first, it seems confusing but once you see the implementation, it’s really easy to grasp and understand the minor difference between Factory a…

    Design-pattrns/Abstract-Factory-Pattern’s past year of commit activity
    Java 0 1 0 0 Updated Dec 4, 2018
  • Factory-Pattern Public

    Factory design pattern is used when we have a super class with multiple sub-classes and based on input, we need to return one of the sub-class. This pattern take out the responsibility of instantiation of a class from client program to the factory class. We can apply Singleton pattern on Factory class or make the factory method static

    Design-pattrns/Factory-Pattern’s past year of commit activity
    Java 0 0 0 0 Updated Dec 3, 2018

Top languages

Loading…

Most used topics

Loading…