Hacker News new | ask | show | jobs
by scrabble 4320 days ago
Technical debt for me is code without tests.

If I can't properly determine the intent of code, and there are no tests to ensure that refactoring is not breaking expected behavior, then it becomes difficult to work with that code in the future and I may end up creating workarounds and bypasses instead of simply updating the code.

1 comments

Code without a regression test suite is debt.

Code with tons of pointless unit tests is debt too.

I agree with your #2. If the test doesn't add value (such as ensuring a requirement or story is correct) then it's noise.

An exception might be made for utility methods that get used in sometimes strange ways, where you want to test every edge case possible.