News for hackers. Stuff that matters.
Re:Things I learnt by not writing tests by icefox on Friday January 08, 2010 @11:08AM (#1039777)
In a similar vain to what the author is talking about by writing tests you probably end up creating a better api, especially if you write the tests first.
Re:Things I learnt by not writing tests by silentbicycle on Friday January 08, 2010 @02:03PM (#1040159)
Well, sure. Designing an API, informed by feedback from writing some tests as you go, and dogmatically insisting that it's best to always write tests first and let that be the primary driver of the design process are two different things, however. (Not implying that you're saying the latter.)

I don't think a lot of people would argue that writing tests can be a good way to get feedback about a design. Some particularly vocal TDD advocates seem to be making it into an all-or-nothing issue, though.

Re:Things I learnt by not writing tests by anApple on Friday January 08, 2010 @02:13PM (#1040177)
That's called design by contract: http://en.wikipedia.org/wiki/Design_by_contract