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

Easy way to understand the code: have your AI write tests for it. Especially the gnarliest parts.

Tests prevent regressions and act as documentation. You can use them to prove any refactor is still going to have the same outcome. And you can change the production code on purpose to break the tests and thus prove that they do what they say they do.

And your AI can use them to work on the codebase too.



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

Search: