Monatsarchiv: Februar 2017

Linq vs Loop: Simple Query

Within this article and within further articles I want to compare Linq and classical loops. During code reviews you may sometimes hear the suggestion to use language specific features as they will simplify the source code. Such a feature is … Weiterlesen

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

Design patterns: Factory Method vs Abstract Factory

In case a class instance shall be created, developers may give the advice to use a “factory”. This common term isn’t wrong but sometimes it’s better to define the exact type of factory you want to use. So, in this … Weiterlesen

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

Design patterns: Abstract Factory

The Abstract Factory pattern is used to delegate the responsibility of creating object to another class. Therefore the factory is implemented as an object and provides an interface for creating families of related classes. The creation of the class instances … Weiterlesen

Werbung

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