DEV Community

Discussion on: 3- Why Should I Write Tests While Developing Software?

Collapse
 
jwp profile image
John Peters

I've been a developer for 30 years and have developed lots of complex solutions. Sometimes from scratch other times integrating new functionality and most frequently upgrading current code.

The only way to survive long term is to have extensive tests which stop regression. By doing this, a confidence develops giving one the freedom to refactor at will. Software development is like surgery. Make one mistake and the patient suffers or dies. Why risk it? We don't have too when being disciplined in creating adequate tests for each push.