Design pattern with Java 8

  • View
    982

  • Download
    0

Embed Size (px)

Transcript

  • Code Quality ?

    Design Pattern

    @somkiat

  • Pattern Language 1977

  • Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice

    Christopher Alexander (Architect) A Pattern Language

  • Design Pattern 1994

  • Design Pattern 1994

    Program to an interface, not implementation

    Object composition over class inheritance

  • SOLID 2000

  • SOLID

    Single Responsibility Principle

    Open/Close Principle

    Liskov Substitution Principle

    Interface Segregation Principle

    Dependency Inversion Principle

  • Functional Interface 2014

  • GoF patterns

    Structural

    Behavioral

    Creational

  • Structural patterns

    Adapter Bridge Decorator

    Composite Proxy Flyweight

  • Structural patterns

    Adapter Bridge Decorator

    Composite Proxy Flyweight

    Object composition over class inheritance

  • Behavioral patterns

    Command Observer State

    Iteration Visitor

  • Creational patterns

    Static Factory Singleton

    Abstract Factory Builder

    Monad