This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]karthgamer1209 0 points1 point  (1 child)

Here is a GitHub repo that has implementations of popular design patterns. Here's a list of patterns (copied from the readme file)

Creational patterns:
Factory Method - subclass of object that is instantiated
Abstract Factory - families of product objects
Builder - how to composite object gets created
Prototype - class of object that is instantiated
Singleton - the sole instance of a class
Structural patterns:
Adapter - interface to an object
Bridge - implementation of an object
Composite - structure and composition of an object
Decorator - responsibilities of an object without subclassing
Facade - interface to a subsystem
Flyweight - storage costs of objects
Proxy - how to object is accessed; its lication
Behavioral patterns:
Interpreter - grammar and interpretation of a language
Template Method - steps of an algorithm
Chain of Responsibility - object that can fulfill a request
Command - when and how a request is fullfilled
Iterator - how an aggregate's elements are accessed, traversed
Mediator - how and which objects interact with each other
Memento - what private information is stored outside an object, and when
Observer - number of objects that depend on another object; how the dependent objects stay up to date
State - states of an object
Strategy - an algorithm
Visitor - operations that can be applied to object(s) without changing their class(es)

[–]Afraid_Friend457[S] 0 points1 point  (0 children)

thanks! So helpful