News for hackers. Stuff that matters.
Re:Show HN: I started a repo for sharing algorithm implement... by ericHosick on Tuesday December 24, 2013 @01:26AM (#6958506)
Tests and behavior should be defined before the code.

I recommend you comment out all code, write the tests and then un-comment the code line by line.

This not only tests the code, but tests the tests and assures that you are covering the edge cases the code contains already.

Re:Show HN: I started a repo for sharing algorithm implement... by kennyledet on Thursday December 26, 2013 @11:11PM (#6969366)
Update: Unit tests are now a convention.