From IT Skills
Jump to: navigation, search

Software design pattern... object-oriented patterns are not necessarily suitable for non-object-oriented languages... a pattern must be programmed anew into each application that uses it

Creational[edit]

Singleton[edit]

Multiton[edit]

singleton allows only one instance of a class to be created, the multiton pattern allows for the controlled creation of multiple instances, which it manages through the use of a map.

Factory method[edit]

let subclasses decide which class to instantiate.

for Performance[edit]

Structural[edit]

  • Adapter... Lets classes work together that couldn't otherwise because of incompatible interfaces
    its subclass uses foreign interface, but in #Proxy such implementation detail is unknown
  • Decorator allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the same class... Decorator use can be more efficient than subclassing - it is Cacheing

Proxy[edit]

sender and receiver have same interface

Behavioural[edit]

Asynchronous patterns[edit]

Subcategories

This category has the following 9 subcategories, out of 9 total.

A

E

G

P

V

Pages in category "Design patterns"

The following 19 pages are in this category, out of 19 total.