2 ms·
Here is why I used a header only library for my last C++ project. Earlier this year I wrote a Win32 program to solve an obscure issue for my employer. My main
by tjalfi 8y ago
Here is why I used a header only library for my last C++ project.
Earlier this year I wrote a Win32 program to solve an obscure issue for my employer.
My main concern was making it possible for programmers with limited knowledge of C++ to maintain the application. We are a C# shop and I want my coworkers to be able to maintain the application after I leave.
Here are some of the other things I did to make life easier for the maintenance programmer.
I documented how the program works, what APIs it calls, and added links to Pluralsight courses on ATL and COM. The program uses printf format strings so there is a link to a tutorial on them.
I added extensive logging with line numbers for every action that the program takes. You can reconstruct the control flow by looking at the log file. Yes, I tried doing this.
I picked a header only logging library so that it would be easier for a maintenance programmer to update it. All they have to do is update the submodule that contains the library.