Monatsarchiv: März 2017

Design patterns: Iterator

An Iterator provides a way to access the elements of an object sequentially without exposing the underlying representation. It is a base Design Patterns which we use permanently. For example a loop over a list is done by using the … Weiterlesen

Veröffentlicht unter .NET, C#, Clean Code, Design Pattern | Kommentar hinterlassen

Design patterns: Facade

A Façade class provides a higher level interface to a set of sub level interfaces. This will make the subsystem easier to use. The high level interface will hide details of the low level interfaces. This may be complex workflows … Weiterlesen

Veröffentlicht unter .NET, C#, Design Pattern | Kommentar hinterlassen

Use factory methods instead of overloaded constructors

If a class can be created and initialized in different ways or by using different kind of values you may often see overloaded constructors. This is a standard way to implement such an object creation but it has a major … Weiterlesen

Veröffentlicht unter .NET, C#, Clean Code | Kommentar hinterlassen