Design patterns – Part 1: Strategy pattern
One of the simplest and most commonly used patterns is definitely strategy pattern. We cannot pass a boring definition, so here you go:
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy algorithm vary independently from clients that use it.
You will find out that all strategy pattern really enforces is you to plan your code for change. In this article, I would like to present use of Strategy pattern in LotusScript. [Read the rest of this entry…]