Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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.



Where "next dev" includes "yourself, three months from now".


100% correct!


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: