Chain of responsibility The purpose for this is for high cohesion. This means, to increase the reusability. This can be visualized with the specialization in manufacturing world. Each function performs specialized task, and chained together to perform a bigger task. These functions can be reused in other scope since they are doing specialized and simpler task. Command This is to encapsulate requests. Thus, for a program to call any command, it has the similar interface. Interpreter This will translate the context passed by client and perform necessary task on it. Iterator This to enable to parse through the whole data structure. Mediator As a middle man between 2 sub-program to enable low coupling, or for decoupling purpose. Momento This is to capture the state of the class and stored in another object Good for undo to restore the object to its previous state Observer It’s for event driven. As listener, or “don’t call me, I’ll call you” (After reading the online...
Previously known as jcrys26's kdb. A learning dump and sharing place.