Algorithms: patterns: Difference between revisions
From wikinotes
(→Notes) |
(→Notes) |
||
Line 20: | Line 20: | ||
| [[observer pattern]] || register subscriptions, send events to them | | [[observer pattern]] || register subscriptions, send events to them | ||
|- | |- | ||
| [[factory pattern]] || choose/instantiate a concretion of an interface. | | [[factory pattern]] || choose/instantiate a concretion of an interface. encapsulate conditionals. | ||
|} | |} | ||
</blockquote><!-- Notes --> | </blockquote><!-- Notes --> |
Latest revision as of 23:22, 26 November 2022
See Also Programming: Concurrency Patterns
References
Wikipedia: Software Design Patterns https://en.wikipedia.org/wiki/Abstract_factory_pattern#External_links
Notes
singleton pattern lazily evaluated global variables ++ logic strategy pattern AKA - interfaces are dope observer pattern register subscriptions, send events to them factory pattern choose/instantiate a concretion of an interface. encapsulate conditionals.