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

One way to be sure what the code is doing is writing unit tests.

Just dumb black boxing is fine: `assert f(0) == 0`. When it returns "Pancake", change to `assert f(0) == "Pancake"`

...repeat until you understand :)



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

Search: