Keeping bugs out of existing code during new development has always been a huge problem. However a new methodology,Test Driven Development (TDD), is helping to change that. The two main principles of this methodology are:
Never write a single line of code unless you have a failing automated test, and