News for hackers. Stuff that matters.
Re:Why To Write Tests For Your Code by jackpirate on Monday August 29, 2011 @01:06PM (#2937885)
Can anyone tell me why they would not want to write tests?

Laziness, ignorance, rapid prototyping, no budget, more important problems... all the obvious reasons. I can't think of any "good" reasons from an engineering perspective, only business.

Re:Why To Write Tests For Your Code by wccrawford on Monday August 29, 2011 @01:08PM (#2937895)
Rapid prototyping is the best anti-testing reason I've heard yet. I even halfway agree with it.

But in my experience, even prototypes can benefit from it.

For me, testing actually makes the whole thing go faster. I spend less time worrying and more time developing, because I have the confidence that the rest of my code works exactly like I want it to.

Re:Why To Write Tests For Your Code by coecoventures on Monday August 29, 2011 @01:19PM (#2937946)
Totally agree. We're following a lean startup approach and have identified our MVP and roadmap. Unit testing allows us to ensure our MVP works and that we have a reliable way to add features per our roadmap and still have a viable product. This sets the stage for us to rapidly and reliably enhance the UI, as well, while still shipping on time and getting customer feedback.
Re:Why To Write Tests For Your Code by fatalerrorx3 on Monday August 29, 2011 @01:40PM (#2938036)
Rapid Prototyping gets my vote..I'm in the process of working on a prototype for a new web service that's attempting to make easier a very complicated industry (where things are evolving at a rapid pace). I've noticed that we never have any time to create test user cases, however I am working with 2 others who hire outsiders to perform real user tests, which works well enough for the time being...but testing only a few users, with a minimal amount of requests doesn't really give you a good indication of whether or not your application can handle the load of multiple users. From a functionality standpoint user testing is good, but from a stress-testing go-live standpoint it's not really that good an indication as to where you stand