Community Coding : Design Patterns

Trying out AbstractFactory pattern :

04_AbstractFactory_Example.vl (79.6 KB)

3 Likes

Added comments on AbstractFactory.
04_AbstractFactory.vl (137.3 KB)

And here is a first shot at FactoryMethod.
FactoryMethod.vl (38.6 KB)

Another at the ObserverPattern.
ObserverPattern.vl (44.5 KB)

Quick try at the Facad pattern with TextureFX (not sure about Dispose though)
FacadPattern.zip (9.6 KB)

4 Likes

We also have the State Pattern now, see this video for the theory, and here is the implementation:

2 Likes

FactoryPattern.vl (89.8 KB)

Another shot at Factory Pattern in VL

4 Likes

FactoryPatternAutoRegister.vl (106.0 KB)
an other variation, this time the factory register automatically every class that implement the common interface, and create them via dynamic instantiation.

2 Likes

I’ve just added RemoveByIndex and ClearAll methods

FactoryPatternAutoRegister_2.vl (124.3 KB)

2 Likes