Re:Ask HN: Do you write unit testing when creating a new pro...
by noonespecial on Thursday October 11, 2012 @08:07PM
(#4643374)
I don't write the tests. It takes to long when I'm exploring a problem space, but I do write or at least think about test conditions and what it would take to satisfy them.
I find that if I can't easily imagine how I would create a test for the code I'm currently banging on, I don't have enough encapsulation yet to arrive at a workable solution.
I find that if I can't easily imagine how I would create a test for the code I'm currently banging on, I don't have enough encapsulation yet to arrive at a workable solution.