In [XP Programming][1], code refactoring is at the core - it provides outstanding [benefits][2]. However, most developers seem to fear refactoring. As the project manager of your team, you not only need to meet deadlines, but also need to provide good quality source code to client. Also, as a leader, you need to think about ways for your team to improve themselves.

I believe Refactoring of code frequently is a good practice that developers should have. The problem is, some developers being too familiar with old way of working, are resistant to refactoring. 

How can you ask your team to actually do code refactoring? What did you do? (if you have past experience)



  [1]: https://en.wikipedia.org/wiki/Extreme_programming
  [2]: http://www.extremeprogramming.org/rules/refactor.html