Monatsarchiv: September 2017

Delete commented-out code

You may see it the source code of nearly in every software project: commented-out code. Maybe you ignore and read over it or maybe you ask yourself: Why does this commented-out code exist? Does the creator of this code store … Weiterlesen

Veröffentlicht unter Uncategorized | Kommentar hinterlassen

Functor, Lamdba and Predicate

Within this blog article I want to explain the C++ functor, lambda and predicate concepts by using them in short and easy to understand examples.   Functor A functor is a class or struct which acts like a function. This … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen

Use const whenever possible

The const keyword allows you to specify a semantic constraint: an object should not be modified. And compilers will enforce that constraint. This will allow you to communicate to the compiler and to other developers that the object should remain … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen