Category Archives for "Design Patterns"

Design Patterns Series – Learn Design Patterns quickly

What is a design pattern? From Wikipedia: In software engineering, a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. I think that learning design patterns and the underline Object Oriented Design principles is really important. However, it is really difficult and time consuming. It requires […]

Continue reading

5 The Iterator Pattern in .NET

The Iterator Pattern provides a way to access the elements of an aggregate object (collection) sequentially without exposing its underling representation. The ultimate goal of the pattern is to decouple the client from the implementation of the collection that always remains well encapsulated. This is definitely my favourite pattern in particular for how it is supported by […]

Continue reading

The Template Method Pattern in .NET

The Template Method Pattern defines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm’s structure. This pattern is typically used to implement frameworks as an important technique for code reuse. It allows to encapsulate pieces of algorithms […]

Continue reading
1 2 3 4