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

Any time you use the console or a printed output to debug something, that is an embryonic test assertion in the making, and all you have to do is move it to a proper suite. ;)

If you are doing it because you are deep in some nested conditionals... you need to refactor.



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

Search: