3 ms·
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 c
by jordyhoyt 18y ago
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.
- ScottWhigham 18y agoFastest 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 http://c2.com/xp/YouArentGonnaNeedIt.html)!
- jordyhoyt 18y agoRight! 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.