News for hackers. Stuff that matters.
Re:Ask YC: Does anybody enjoy unit testing their code? by jordyhoyt on Thursday June 12, 2008 @02:10AM (#215711)
I find this to be very true, writing the tests at the beginning is exciting because you get to see what your code is going to accomplish. Then filling in the code to pass the tests is exciting because you're working toward a very clear goal with a very clear payout. Best way to work, imho.
Re:Ask YC: Does anybody enjoy unit testing their code? by ScottWhigham on Thursday June 12, 2008 @09:47AM (#215919)
Fastest way to work, too, since you figure out in advance specifically what you're trying to accomplish. It helps avoid YAGNI syndrome (http://c2.com/xp/YouArentGonnaNeedIt.html)!
Re:Ask YC: Does anybody enjoy unit testing their code? by jordyhoyt on Thursday June 12, 2008 @03:01PM (#216186)
Right! It's almost as fast as writing code a second time after you accidentally rm it into oblivion! Thanks for that YAGNI page, makes a lot of sense.