Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Loosely coupled code could well have unit testing and mocking covering >90% with great results. We should not conflate unit and integrations tests here. I have also found regression testing to be a great way to declare and interpret intent when trying to understand someone else's code.

I think the classic book "Working Effectively with Legacy Code" declared "legacy code" to simply be code that has no tests.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: