发新话题
打印

[算法&数据结构] Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code

Title:Refactoring: Improving the Design of Existing Code
URL:http://www.amazon.com/exec/obido ... =glance&s=books
ISBN:0201485672
Author:Martin Fowler/Kent Beck(Contributor)/John Brant (Contributor)/William Opdyke/Don Roberts
Publisher: Addison-Wesley
Page: 431 pages
Edition: 1st edition (June 28, 1999)
Catalog:Computers & Internet/Programming/Software Design/Object-Oriented
Format: pdf
Size: 2.06MB
Supplier: morass
Summary: Refactoring: Improving the Design of Existing Code shows how refactoring can make object-oriented code simpler and easier to maintain. Today refactoring requires considerable design know-how, but once tools become available, all programmers should be able to improve their code using refactoring techniques.
附件: 您所在的用户组无法下载或查看附件

TOP

会犯错误就是人。如果这是真理的话,我看到了数以百计比我更象人的程序。项目出问
题了。错误出现了。进度延期了,质量牺牲了。这些都是对我们所从事的职业的警告。
但是当事情逐渐变得最糟时,你需要在什么地方改变方向呢?我的非常多的同事采用"t
hrow-away-and-start-over"的方法:从零开始,希望自己已经可以避免错误了。那是最
极端的解决办法,它一定激怒了你的老板。但是不要绝望,因为有替代的办法。《Refa
ctoring: Improving the Design of Existing Code》是Addison-Wesley出版社面向对
象技术系列丛书中的一本,作者是Martin Fowler, Kent Beck, John Brant, William
Opdyke, 和Don Roberts ,出版日期是1999年,这本书给开发者提供了重新开始的不同
选择。Refactoring就是通过重构一个程序的内部结构但是不改变它的外部行为来提高它
的性能的处理过程。Refactoring能让一个方法执行得更快或者提供更精确的执行结果,
但是不改变这个方法的名字。这些改变对调用该方法的程序而言是不可见的,因此没有
代码需要修改。这本书教读者如何通过一个特殊的意识来识别问题代码,而且将每一个
放到一个程序目录中以便修改。例如,一个意识或许是一个不适当的亲密关系--描述了
两个或更多个类的关系太紧密了以致对一个类的改变要求另一个类也要改变。这本书所
建议的众多的解决方法的一个是将这个存在问题的方法移到一个更适当的类中。

TOP

发新话题