How to refurbish legacy code into a maintainable state

So you (or rather I) have this legacy code that must be maintained. It has all the classic symptoms: it looks like it was written before const, smart pointers or RAII were a thing the author was a big fan of (overly) defensive programming either not much thought went into the overall design or over Read more about How to refurbish legacy code into a maintainable state[…]