On 10/04/13 07:18, Jordan wrote:
Alan you are right, the code should be better tested, but test driven
development seems like it would take me forever to complete even small
tasks, there is so much to be tested. I have limited time to program
with my wife and kids, but do you think test driven development is still
the way to go?
Do you want to spend your time writing tests that identify bugs
immediately or spend your time debugging code after you've written it
and every time you modify it?
A lot depends on how often you will be going back to the code in the
future. If this is a use once throw away project then TDD may be
overkill. If you are likely to want to enhance it in the future TDD
is an investment to save time.
I confess I don't use TDD all of the time and even with TDD errors will
still sneak through. But TDD improves your chances of finding them early
considerably.
It will usually take the same amount of total time, its just a question
of how you use it.
HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor