All posts in "Refactoring"

Mikado Refactoring with C++ Feature Macros

Published January 24, 2020 - 0 Comments

This is a guest post by Vaughn Cato. Vaughn has been developing using C++ since the early 90’s and is still learning!  You can find him on Twitter @vaughncato. Thanks to Ricardo Nabinger Sanchez for his review of the article. Refactoring is a technique for making improvements to the design of a code base without […]

10 Code Smells a Static Analyser Can Locate in a Codebase

Published March 26, 2019 - 0 Comments

Today’s guest post is written by Issam Lahlali. Issam is the CppDepend lead developer. He enjoy writing C++ code every day and  he wrote many posts about the C++ code quality. Static analysis is not only about directly finding bugs, but also about finding bug-prone situations that can decrease code understanding and maintainability. Static analysis […]

Integrating Mocking With C++ Default Parameters

Published August 21, 2018 - 5 Comments
testable expressive C++

When we put a piece of code into a unit test, sometimes we need to hammer it into a shape that fits into a test harness. A typical example is for cutting dependencies: the function we’d like to test depends on UI, a database, or just something really intricate that our test binary can’t link […]