[TIP] testing: why bother?
Michael Foord
michael at voidspace.org.uk
Wed Mar 23 08:11:31 PDT 2011
On 23/03/2011 15:05, skip at pobox.com wrote:
> Laura> I think that the most important reason to write tests is so that
> Laura> they can write them _first_, and the code _later_. This will
> Laura> change the way they write code, so that they won't produce these
> Laura> large, self-contained, too-tightly coupled messes, which just
> Laura> happen to work, and which are a nightmare to refactor because
> Laura> they don't decompose nicely.
>
> OTOH, writing tests first is also no guarantee that your code will be
> well-structured.<wink>
Oh, you obviously haven't heard - TDD is the silver bullet (and Titus is
just lazy and ignorant):
http://tartley.com/wp-content/uploads/2008/03/tddbrookssilverbullet.pdf
All the best,
Michael
> Skip
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
More information about the testing-in-python
mailing list