Skip to content

kivimango/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DESIGN PATTERNS

Build Status

What are the design patterns ?

"In software engineering, a software design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. It is not a finished design that can be transformed directly into source or machine code".

Why we need them ?

"It is a description or template for how to solve a problem that can be used in many different situations. Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system".

How they do work ?

"Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Patterns that imply mutable state may be unsuited for functional programming languages, some patterns can be rendered unnecessary in languages that have built-in support for solving the problem they are trying to solve, and object-oriented patterns are not necessarily suitable for non-object-oriented languages". Wikipedia

List

Behavioral Behavioral patterns are concerned with the assignment of responsibilities between objects, or, encapsulating behavior in an object and delegating requests to it.

  • Chain of Responsibilities
  • Command
  • Iterator
  • Mediator
  • Memento
  • NullObject
  • Observer
  • Specification
  • State
  • Strategy
  • TemplateMethod
  • Visitor

Creational

  • AbstractFactory
  • Builder
  • FactoryMethod
  • Multiton (!)
  • Pool
  • Prototype
  • SimpleFactory
  • Singleton (!)
  • StaticFactory

Structural

  • Adapter
  • Bridge
  • Composite
  • DataMapper
  • Decorator
  • DependencyInjection
  • Facade
  • FluentInterface
  • Flyweight
  • Proxy
  • Registry

Contribution

Contributions are welcome ! If you see errors, bugs, please open a new Issue, or send a pull request.

Read More

You can read more about design patterns in the following books:

About

Collection of Design Patterns

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages