Refactoring
Decompose complex condition Extract code into separate methods with meaningful names: if (date.before(SUMMER_START) ||date.after(SUMMER_END)) { charge = quantity * _winterRate + _winterServiceCharge; } else { charge = quantity * _summerRate; } if (notSummer(date)) { charge = winterCharge(quantity); } else { charge = summerCharge(quantity); } 8

Refactoring Day 1 : Encapsulate Collection 在某些场景中,向类的使用者隐藏类中的完整集合是一个很好的做法,比如对集合的 add/remove 操作中包 含其他的相关逻辑...
经典课件收藏 兼职创业,免费注册,赠送商城: 兼职创业,免费注册,赠送商城:http://goodword.teasm.cn Refactoring(重构) 兼职创业,免费注册,赠送商城: 兼职创业,免费...
SEG 4110 – Advanced Software Design and Reengineering Topic T Introduction to Refactoring Copyright Note Based on the book: “Refactoring. Improving the Desi...
refactoring 112 重构重构隐藏>> A Survey of Software Refactoring Tom Mens, Tom Tourwé IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, VOL. XX, NO. Y, MONTH...
用Refactoring来改善设计_IT/计算机_专业资料。面向对象的技术提高了软件重用能力,人们经验的不断总结也不断地改善了设计方法,如何去改善我们原有的系统是一个比较复杂...
Refactoring An Automated Tool for the Tiger Language Leslie A Hensley hensleyl@papermountain.org What I’m Going to Show You ? An example refactoring ? ...
Refactoring思考与实践_IT/计算机_专业资料。Refactoring思考与实践Refactoring – Thinking and Practice Start simple and evolve Draft version 0.1 2001/10/14 Shiy...
Refactoring to Patterns Joshua Kerievsky joshua@industriallogic.com Hello World - Strategy Copyright ? 2005, Joshua Kerievsky, Industrial Logic, Inc. All Righ...
Refactoring Piecemeal Growth The way living things grow The way software grows More than just addition -- transformation http://c2.com/cgi/wiki?...
热门文档