Semantic versioning is a widely used versioning scheme that communicates the nature of changes in software. However, there are common pitfalls and gotchas that developers encounter when implementing semantic versioning. Understanding these issues can help avoid unintended consequences and ensure that versioning is used effectively.
// Incorrectly incrementing version
// Initial Version: 1.0.0
// A breaking change introduced, but the developer increments only the minor version.
$currentVersion = "1.1.0"; // This should be "2.0.0"
// A patch update made, but the developer decides to increment major version instead (incorrect).
$currentVersion = "3.0.0"; // This should be "1.0.1"
How do I avoid rehashing overhead with std::set in multithreaded code?
How do I find elements with custom comparators with std::set for embedded targets?
How do I erase elements while iterating with std::set for embedded targets?
How do I provide stable iteration order with std::unordered_map for large datasets?
How do I reserve capacity ahead of time with std::unordered_map for large datasets?
How do I erase elements while iterating with std::unordered_map in multithreaded code?
How do I provide stable iteration order with std::map for embedded targets?
How do I provide stable iteration order with std::map in multithreaded code?
How do I avoid rehashing overhead with std::map in performance-sensitive code?
How do I merge two containers efficiently with std::map for embedded targets?