Most guys would say “No, but C++ has pointers” and they are right, but not in the way they assume
Continue readingCategory: Development
Move semantics (C++)
Since C++11 we can now use move semantics (move constructor, move assignment operator). They provide a perfomance boost over copy
Continue readingUnit testing series – Test with Mock (Part 5)
The third szenario is using a mock. Mock Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a
Continue readingUnit testing series – Test scenario (Part 2)
For my unit testing series I have designed the following szenario. Prev: Unit testing series – Intro / Setup (Part
Continue readingUnit testing series – Intro / Setup (Part 1)
Introduction With unit testing you want to test the smallest unit possible, which means a single function. These units shall
Continue readingParameter handling (REST)
Path-Param … Gets specified in the URL-Path to move down the hierarchy. Query-Param … Gets specified behind the URL-Path to
Continue readingInteger overflow (C++)
Unsigned integer Range: [0,255] Bitfield: 0x00 =++=> 0x01 =++=> … =++=> 0xFF Interpr.: 0 =++=> 1 =++=> … =++=> 255
Continue readingLayout of std::vector (libstdc++)
Source code Analysis Layout |——————————–| | vector vec | | 1 | 2 | 3 | 4 | 5 |
Continue readingBit operations (C++)
Set a bit value |= 1
Continue readingCommon mistakes (C++)
The following list shows a few common mistakes you will find in code you will have to review before its
Continue reading