Relative Content

Tag Archive for legacy

How to Keep Track of Thread Safe Code in a mostly Thread Unsafe Legacy Rich C++ Code Base

For large legacy C++ code bases, notions like Herb Sutter’s “const means threadsafe” don’t seem to help much, because there can be an overwhelming amount of code in const functions which are modifying state with no synchronization. And even if legacy code wasn’t a problem, for a class like a ThreadSafeQueue, you wouldn’t want the push_back function to be const just because it is threadsafe.

Going TDD in the middle of the project

They want us to develop new features of a product with TDD.
I know that they don’t usually write tests for legacy code of already developed modules.