[TIP] testing: why bother?
michael at voidspace.org.uk
Wed Mar 23 09:31:18 PDT 2011
On 23/03/2011 16:10, C. Titus Brown wrote:
> On Wed, Mar 23, 2011 at 03:11:31PM +0000, Michael Foord wrote:
>> 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
>> Oh, you obviously haven't heard - TDD is the silver bullet (and Titus is
>> just lazy and ignorant):
> Sheeeeite, you found me out!
> Oh, wait, you're not a parent yet, are you... I look forward to watching
> you become "lazy" and "ignorant" in the near future :)
Well - laziness is a virtue, you just happened to have found a local
minima with regards to testing. <0.5 wink>
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