News for hackers. Stuff that matters.
Re:Ask HN: Codebase at my work is a complete mess, what shou... by sdfhsdfhfdsghj on Thursday August 23, 2018 @07:39AM (#17826346)
> I started "repairing" the project but there're no tests to check whether my adjustments are correct.

I'm so frustrated and depressed by it.

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.

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.