<br><br><div class="gmail_quote">On Mon, Jul 6, 2009 at 12:58 AM, Noah Gift <span dir="ltr">&lt;<a href="mailto:noah.gift@gmail.com">noah.gift@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">On Sat, Jul 4, 2009 at 5:48 AM, David Stanek <span dir="ltr">&lt;<a href="mailto:dstanek@dstanek.com" target="_blank">dstanek@dstanek.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Thu, Jul 2, 2009 at 5:37 AM, Noah Gift&lt;<a href="mailto:noah.gift@gmail.com" target="_blank">noah.gift@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div>&gt; I keep going back and forth in swings on very strict 100% code coverage vs<br>
&gt; solving problems quickly under 2 day deadlines.  I think so far the 2 day<br>
&gt; deadline approach wins.  My gut tells me that there is some new theory of<br>
&gt; testing that is a bit more real world then the testing Nazi<br>
&gt; approach.....especially in things like web development or film production.<br>
&gt;  Comments?</div></div></blockquote><div><br></div></div><div> There were a few good comments, like the comment about being able to write a solution in two days because it was built on a libraries that were tested.  In thinking about them and about testing, I can say that I am not 100% sold that you should always write tests for code anymore...as blasphemous as that sounds.  I think it depends.  </div>

<div><br></div><div>If I am writing a library, an API, or  releasing open source software, then, yes, testing is probably mandatory.  If I need to write a prototype, or solve a problem quickly, then it depends.  In film, for example, you may be asked to solve a problem in 2 days, and the solution could no longer be necessary in 7 days.  If it is necessary to stay in production longer then 7 days, then you may just rewrite it, with tests.</div>

<div><br></div><div>I think it is important to be truthful to people who haven&#39;t yet gotten in the habit of writing tests, that writing tests, depends on the context.  There is no silver bullet...at least I haven&#39;t found one.  Sometimes it actually is ok not to write a test, sometimes it isn&#39;t, but....it depends.  Another interesting thing is that if you get in the habit of writing code that is easy to test, say, every function returns something that is &quot;assertable&quot;, then perhaps you now have written better code, and then as a result testing is less necessary for the context you are working in.</div>

</div><br><br clear="all"><br>-- <br>Cheers,<br><font color="#888888"><br>Noah<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br><br>Noah<br>