Giter Site home page Giter Site logo

designpatterns4j's Introduction

designpatterns4j

Learn to code design patterns in Java. The patterns are presented as follows;

  1. ####Creational
    • #####Singleton
      • Disable object creation of the Singleton class and ensure only one instance exist and accessible in current VM.
    • #####Prototype
      • Avoid creating object from scratch instead make copies from a known good state of the class instance.
    • #####Builder
      • Step by Step build a complex object using known values.
    • #####Object Pool
      • Avoid expensive acquisition and release of resources by recycling objects that are no longer in use.
  2. ####Behavioral
    • #####Observer
      • Notify one ore more registered observers up on changes in the observable.
    • #####Template
      • Create a template method to perform repeated operations.
    • #####Mediator
      • Allow a middleware object to control supplier and consumer needs.
    • #####Command
      • Create and execute irreversible action.
  3. ####Structural
    • #####Adapter
      • Make two or more unrelated interfaces to work together.
    • #####Proxy
      • Provide a surrogate to one or more instances of a class thereby controlling access to instances.
    • #####Facade
      • Provide simplified client interface to hide complex interactions between various objects.
    • #####Decorator
      • Add responsibilities at runtime by wrapping up an object without changing the original implementation.
    • #####Bridge
      • Decouple abstractions from implementations thereby allow implementations vary independently.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.