News for hackers. Stuff that matters.
Re:Testing is waste of time, I know that my code works by bradleyjoyce on Friday December 24, 2010 @11:54AM (#2037509)
I can understand how TDD can feel like an extra burden if you're a single developer working on a project. However, having tests is so critically important if the project is passed on to another dev. I recently inherited a project that I had worked on at a previous gig. There were no tests but at the time I was familiar with the code and it didn't matter too much to me at the time. Now, the code has changed significantly, there are still no tests, and I'm always a bit nervous if I have to make a push to production, wondering if somehow I missed something that's going to break the app.

Even if you hate testing... do it for the sanity of the next dev on the project.

Re:Testing is waste of time, I know that my code works by StavrosK on Friday December 24, 2010 @12:00PM (#2037525)
Where "next dev" includes "yourself, three months from now".
Re:Testing is waste of time, I know that my code works by bradleyjoyce on Friday December 24, 2010 @12:01PM (#2037534)
100% correct!
Re:Testing is waste of time, I know that my code works by StavrosK on Friday December 24, 2010 @12:04PM (#2037544)
I absolutely adore unit tests because they mean I can change something down the line and be relatively sure that I haven't broken something else. It's worth writing the simple, 80%-coverage stuff for the peace of mind alone.