Developers are encouraged to use Test Driven Development approach (TDD). TDD is a revolutionary approach to development where you write a test before you write code. The developer first writes an automated test case (should initially fail), then writes the minimum amount of code to pass the test and finally refactors the code to acceptable standards. Refactoring code simply means making the code cleaner, clearer, simpler and elegant. You can read more about refactoring here: Code Refactoring