Re:Ask HN: Codebase at my work is a complete mess, what shou...
by binmanthrowaway on Thursday August 23, 2018 @07:41AM
(#17826367)
This. Don't change the code until you have reasonable test coverage. Only changes to enable testing should be allowed.
If you were to apply TDD to this, you would begin by writing a test verifying existing code, then you will piece-by-piece rewrite it and use your tests to make sure you didn't break stuff.