Test Driven Development is liberating. By knowing that every line of code is being tested, you have full confidence your code works, can easily refactor it whenever you wish and get a fully automated regression suite. But getting into TDD requires a mind shift – you have to rethink how you program. We’ll go over the minute by minute loop a TDD developer goes through – test fail, code, test pass, refactor, repeat. We’ll write code using TDD practices in Salesforce, see how we can refactor it and handle unexpected requirement changes without breaking existing functionality. Make your QA department get bored – reduce bugs in your code, optimize constantly and experience the joy of knowing that every line of code you write is important.