Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: TDD can be useful even when it doesn't achieve what you want Date: Thu, 18 Feb 2016 08:02:08 +1300 Lines: 33 Message-ID: References: <56c2586d$0$12445$e4fe514c@newszilla.xs4all.nl> <56c34b5c$0$18569$e4fe514c@newszilla.xs4all.nl> <56c4b474$0$4233$e4fe514c@newszilla.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net CL3+GzrjyAPKe2qDXxknEQvJwPLMPtv0zWDqsVN6B9YU5hT1Uz Cancel-Lock: sha1:PxUTppMQbIK+Ci4dVPvIuzWexTs= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <56c4b474$0$4233$e4fe514c@newszilla.xs4all.nl> Xref: csiph.com comp.lang.c++:41001 Wouter van Ooijen wrote: > Op 17-Feb-16 om 12:26 PM schreef Juha Nieminen: >> Wouter van Ooijen wrote: >>> As always, the job of an engineer is to choose the right tool >>> for the job at hand. >> >> I don't think anybody (who knows anything) is claiming that TDD is >> the silver bullet, the perfect tool for every possible situation. >> >> However, when properly used, properly applied, and when rigorously >> followed, it increases the quality and design of programming projects. > > When I read these two scentences they seem to contradict each other. > > PS Uncle Bob *does* claim that TTD is *the* tool to apply to every > programming problem. > >> It might not test every single potential bug that a program may have >> (not even nearly), but it catches early on easy mistakes (and often >> even more obscure ones). The time you "waste" on the TDD part can well >> be saved in avoiding the bug hunting later on. Also, the design decisions >> you do in order to make TDD work can pay off all in themselves as well. >> >> That's not to say that the program cannot be designed poorly even when >> using TDD properly. But there's a reason why so many people advocate it. > > Against those assertions I assert that there is a reason so many people > are against it. The reason is they don't understand TDD or have experienced it done badly. -- Ian Collins