@duongital

Design Patterns in Programming

Some design patterns in OOP languages: Java, C++... and functional ones: Javascript, Python...

functional programming

closure

currying

object oriented programming

oop - creation

factory method

abstract factory

interface KingdomFactory {
  King createKing();
  Army createArmy();
  Castle createCastle();
}

builder

prototype

singleton

oop - struct

adapter

bridge

composite

decorator

facade

flyweight

proxy

oop - behavior

chain of responsibility

command

iterator

mediator

memeto

observer

state

strategy

template method

visitor