Behavioral pattern: Difference between revisions

Content deleted Content added
m top: General fixes and Typo fixing, replaced: aka → a.k.a. using AWB
m top: capitalization and linking
Line 5:
* [[Chain of responsibility pattern]]: Command objects are handled or passed on to other objects by logic-containing processing objects
* [[Command pattern]]: Command objects encapsulate an action and its parameters
* "Externalize the Stackstack": Turn a recursive function into an iterative one that uses a [[call stack|stack]]<ref>{{cite web
| url = http://c2.com/
| title = Externalize The Stack
Line 18:
* [[Mediator pattern]]: Provides a unified interface to a set of interfaces in a subsystem
* [[Memento pattern]]: Provides the ability to restore an object to its previous state (rollback)
* [[Null Objectobject pattern]]: Designed to act as a default value of an object
* [[Observer pattern]]: a.k.a. Publish/Subscribe or Event Listener. Objects register to observe an event that may be raised by another object
** Weak reference pattern: De-couple an observer from an observable<ref>{{cite web