RSA – explained. Part 1.

RSA a milestone in cryptography, was first published by Ron Rivest, Adi Shamir and Leonard Adleman (MIT) in 1977. Their work based heavily on idea of asymmetric public-private key cryptosystem […]

Read More

Design Patterns

Design Patterns Design Patterns: Elements of Reusable Object-Oriented Software is a software engineering book describing software design patterns. The book’s authors are Erich Gamma, Richard Helm, Ralph Johnson and John […]

Read More

Template Method

1. Usage Define the skeleton of an algorithm in base class “Template Method” Steps required concrete implementation define as placeholders in base class Derifed classes fill-up placeholders with concrete implementations […]

Read More

State Pattern

1. Usage Allow an object to change behavior when State changed. implements OOP Final State Machine(FSM) 2. UML class diagram Context is wrapper class – interface to state Define abstract […]

Read More

Observer pattern

1. Usage Pattern Observer – define relationship “one to many” such way that when state of object change all dependent objects notified/updated automatically. Pattern Observer encapsulate main component in Subject […]

Read More

Strategy Pattern

1. Usage Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from the clients that use it. Capture the abstraction in […]

Read More

Visitor Pattern

1. Usage Adds new operations to existing object structure without modifying that structure. Separates an algorithm from an object structure on which it operates. Example: An example would be a […]

Read More

Command pattern

1. Usage Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations. The purpose of the Command pattern […]

Read More

Iterator pattern

1. Usage Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. makes possible to decouple collection classes and algorithms. Promote to “full […]

Read More

Interpreter pattern

1. Usage Specialized database query languages such as SQL,RegExp. Specialized computer languages which are often used to describe communication protocols. Most general-purpose computer languages actually incorporate several specialized languages.(lua script […]

Read More