Monatsarchiv: August 2017

Dependency Inversion by using the Unity Injection Constructor

One of the five SOLID principles is Dependency Inversion. To implement according to this principle you can use interfaces and dependency injection. As a software application normally consists of hundreds or thousands of objects you will have to set up … Weiterlesen

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

Perfect Forwarding

Perfect forwarding is an implementation concept which helps avoid the forwarding problem. Therefore, if we want to understand the need for perfect forwarding, we have to start by looking at the forwarding problem. This issue can occur when you have … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen

Scoped vs. unscoped enum

C++ has two kinds of enumerators. You will find several names for both. Following you will see the two kinds of enumerators and some of their names: Standard enum / plain enum / unscoped enum / conventional enum Strong enum … Weiterlesen

Veröffentlicht unter C++ | 1 Kommentar