15. Learning to Refactor
IN THE PRECEDING CHAPTER, you implemented the first part of the “Image Favorites” story and along the way learned how to use the new unit testing facilities of Visual Studio 2005 to perform test-first programming (TFP). This chapter is more concerned with the refactoring required as you implement more of the “Image Favorites” story and, therefore, find yourself wanting to improve the structure and design of your code without changing its functionality. We will start by making refactorings that cause such improvements to happen in a small way, but by the end of the chapter, you will have learned how to make refactorings that result in a significant enhancement of your code.
Doing Small Refactorings
The secret of refactoring ...
Get Visual Studio Team System: Better Software Development for Agile Teams now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.