lvalue vs. rvalue An lvalue is usually on the left side of an assignment and is addressable in the memory.
Continue readingCategory: Development
Conceptual distinction – SW-Development
Parameter vs. Argument Both are related to functions. Parameters are the required input of a function. Arguments are the provided
Continue readingUse process block for pipeline inputs (PS)
If you get a parameter via the pipeline and don’t use a process block, you will operate just on the
Continue readingAccess caller variables from threads (PS)
In PowerShell, threads getting executed in separate run spaces. To access variables from the caller scope, you have to use
Continue readingSingle vs. double quotes (C++ / PS)
C++ char c = ‘a’; // Character char* s = “abc\ndef”; // Null-terminated C-string PS > $a = 42 >
Continue readingDeleter – std::shared_ptr vs. std::unique_ptr
For the std::unique_ptr the deleter is part of the type and the std::shared_ptr keeps it as part of its control
Continue readingTypes of mutexes and locks (C++)
Mutexes (Selection) … synchronizes the access on critical sections std::mutex Provides exclusive access (can only be pulled by one thread
Continue readingNull-terminated strings (C++)
If you are working with strings you have two basic ways to define its length. Either you write a specific
Continue readingActive vs. passive waiting (C++)
Active waiting Don’t use this approach, cause it will unnecessarily consume CPU time. The sleep reduces the CPU consumption, but
Continue reading