测试驱动开发(影印版)
[特价中]基本信息
- 原书名: Test-Driven Development
- 原出版社: Pearson Education
- 作者: (美)Kent Beck [作译者介绍]
- 丛书名: 软件工程系列
- 出版社:中国电力出版社
- ISBN:7508314018
- 上架时间:2003-7-18
- 出版日期:2003 年8月
- 开本:16开
- 页码:226
- 版次:1-1
- 所属分类:
计算机 > 软件工程及软件方法学 > 综合
编辑推荐
本书是KentBeck先生的最新力作,获得第13届General 效能大奖,在亚马逊网站上持续热卖,是Addison-Wesley出版公司著名的大师签名系列图书之一。
内容简介回到顶部↑
[font color="#ff0000"]本书是kentbeck先生的最新力作,在亚马逊网站上持续热卖,是addison-wesley出版公司著名的大师签名系列图书之一。[/font]
我们希望本书的引进,能让更多读者有机会亲自体验最原汁原昧的大师作品,缩短与国外先进技术的差距,并借以推动年轻的中国软件产业的发展。 近一两年,极限编程(xp)在中国的软件企业中受到了相当的重视,越来越多的开发团队开始应用xp的方法,并从中受益。xp以“开发符合客户需要的软件”为目标,鼓励需求变化,并主动拥抱变化:,测试驱动开发(tdd)是极限编程的重要特点,它以不断的测试推动代码的开发,既简化了代码,又保证了软件质量,但是如何正确地进行测试,以及如何对代码中难以测试的地方进行测试,这些问题一直在困扰着开发团队。 本书从头到尾跟踪介绍了两个tdd项目,描述了程序员容易上手又能大大提高工作质量的技术。在涉及tdd最有特色的模式和重构后面都附有例子。
[font color="#ff0000"]kentbeck是软件开发方法学的泰斗、xp的创始人,长期致力于软件工程的理论研究和实践,并具有讲授xp的丰富经验。[/font]作为软件业内最富创造,哇和最有口碑的领导人之一,kentbeck极力推崇模式、极限编程和测试驱动开发,,他现在加盟于threerivers研究所,是多部畅销书如《smalltalk best practicepatterns》、《[a href="http://www.china-pub.com/computers/common/info.asp?id=6376" target="_blank"]解析极限编程——拥抱变化[/a]》和《[a href="http://www.china-pub.com/computers/common/info.asp?id=6377" target="_blank"]规划极限编程[/a]》(和martin fowler合著)的作者,并且是超级畅销书《[a href="http://www.china-pub.com/computers/common/info.asp?id=12301" target="_blank"]重构——改善既有代码的设计[/a]》(中国电力出版社出版中英文版)的特约撰稿人。
我们希望本书的引进,能让更多读者有机会亲自体验最原汁原昧的大师作品,缩短与国外先进技术的差距,并借以推动年轻的中国软件产业的发展。 近一两年,极限编程(xp)在中国的软件企业中受到了相当的重视,越来越多的开发团队开始应用xp的方法,并从中受益。xp以“开发符合客户需要的软件”为目标,鼓励需求变化,并主动拥抱变化:,测试驱动开发(tdd)是极限编程的重要特点,它以不断的测试推动代码的开发,既简化了代码,又保证了软件质量,但是如何正确地进行测试,以及如何对代码中难以测试的地方进行测试,这些问题一直在困扰着开发团队。 本书从头到尾跟踪介绍了两个tdd项目,描述了程序员容易上手又能大大提高工作质量的技术。在涉及tdd最有特色的模式和重构后面都附有例子。
[font color="#ff0000"]kentbeck是软件开发方法学的泰斗、xp的创始人,长期致力于软件工程的理论研究和实践,并具有讲授xp的丰富经验。[/font]作为软件业内最富创造,哇和最有口碑的领导人之一,kentbeck极力推崇模式、极限编程和测试驱动开发,,他现在加盟于threerivers研究所,是多部畅销书如《smalltalk best practicepatterns》、《[a href="http://www.china-pub.com/computers/common/info.asp?id=6376" target="_blank"]解析极限编程——拥抱变化[/a]》和《[a href="http://www.china-pub.com/computers/common/info.asp?id=6377" target="_blank"]规划极限编程[/a]》(和martin fowler合著)的作者,并且是超级畅销书《[a href="http://www.china-pub.com/computers/common/info.asp?id=12301" target="_blank"]重构——改善既有代码的设计[/a]》(中国电力出版社出版中英文版)的特约撰稿人。
作译者回到顶部↑
本书提供作译者介绍
Kent Beck是软件开发方法学的泰吉、XP的创始人,长期致力于软件工程的理论研究和实践,并具有讲授XP的丰富经验。作为软件业内最富创造性和最有口碑的领导人之一,Kent Beck极力推崇模式、极限编程和测试驱动开发。他现在加盟于Three Rivers 研究所,是多部畅销书如《Smalltalk Best Practice Pattrns》、《解析极限编程拥抱变化》和《规划极限编程》的作者,并且是超级畅销书《重构——改善既有代码的设计》的特约撰稿人。
.. << 查看详细
.. << 查看详细
目录回到顶部↑
preface
acknowledgments
introduction
part i: the money example
chapter 1: multi-currency money
chapter 2: degenerate objects
chapter 3: equality for all
chapter 4: privacy
chapter 5: franc-ly speaking
chapter 6: equality for all, redux
chapter 7: apples and oranges
chapter 8: makin' objects
chapter 9: times we're livin' in
chapter 10: interesting timer
chapter 11: the root of all evil
chapter 12: addition, finally
chapter 13: make it
chapter 14: change
chapter 15: mixed currencies
chapter 16: abstraction, finally
acknowledgments
introduction
part i: the money example
chapter 1: multi-currency money
chapter 2: degenerate objects
chapter 3: equality for all
chapter 4: privacy
chapter 5: franc-ly speaking
chapter 6: equality for all, redux
chapter 7: apples and oranges
chapter 8: makin' objects
chapter 9: times we're livin' in
chapter 10: interesting timer
chapter 11: the root of all evil
chapter 12: addition, finally
chapter 13: make it
chapter 14: change
chapter 15: mixed currencies
chapter 16: abstraction, finally
前言回到顶部↑
Clean code that works, in Ron Jeffries' pithy phrase, is the goal of Test-Driven Development (TDD). Clean code that works is a worthwhile goal for a whole bunch of reasons.
It is a predictable way to develop. You know when you are finished, without having to worry about a long bug trail.
It gives you a chance to learn all of the lessons that the code has to teach you. If you only slap together the first thing you think of, then you never have time to think of a second, better thing.
It improves the lives of the users of your software.
It lets your teammates count on you, and you on them.
It feels good to write it.
But how do we get to clean code that works? Many forces drive us away from clean code, and even from code that works. Without taking too much counsel of our fears, here's what we do: we drive development with automated tests, a style of development called Test-Driven Development (TDD). In Test-Driven Development, we Write new code only if an automated test has failed
Eliminate duplication
These are two simple rules, but they generate complex individual and group behavior with technical implications such as the following.
We must design organically, with running code providing feedback between decisions.
We must write our own tests, because we can't wait 20 times per day for someone else to write a test.
Our development environment must provide rapid response to small changes.
Our designs must consist of many highly cohesive, loosely coupled components, just to make testing easy.
The two rules imply an order to the tasks of programming.
1. Red--Write a little test that doesn't work, and perhaps doesn't even compile at first.
2. Green--Make the test work quickly, committing whatever sins necessary in the process.
3. Refactor--Eliminate all of the duplication created in merely getting the test to work.
Red/green/refactor--the TDD mantra.
Assuming for the moment that such a programming style is possible, it further might be possible to dramatically reduce the defect density of code and make the subject of work crystal clear to all involved. If so, then writing only that code which is demanded by failing tests also has social implications.
If the defect density can be reduced enough, then quality assurance (QA) can shift from reactive work to proactive work.
It is a predictable way to develop. You know when you are finished, without having to worry about a long bug trail.
It gives you a chance to learn all of the lessons that the code has to teach you. If you only slap together the first thing you think of, then you never have time to think of a second, better thing.
It improves the lives of the users of your software.
It lets your teammates count on you, and you on them.
It feels good to write it.
But how do we get to clean code that works? Many forces drive us away from clean code, and even from code that works. Without taking too much counsel of our fears, here's what we do: we drive development with automated tests, a style of development called Test-Driven Development (TDD). In Test-Driven Development, we Write new code only if an automated test has failed
Eliminate duplication
These are two simple rules, but they generate complex individual and group behavior with technical implications such as the following.
We must design organically, with running code providing feedback between decisions.
We must write our own tests, because we can't wait 20 times per day for someone else to write a test.
Our development environment must provide rapid response to small changes.
Our designs must consist of many highly cohesive, loosely coupled components, just to make testing easy.
The two rules imply an order to the tasks of programming.
1. Red--Write a little test that doesn't work, and perhaps doesn't even compile at first.
2. Green--Make the test work quickly, committing whatever sins necessary in the process.
3. Refactor--Eliminate all of the duplication created in merely getting the test to work.
Red/green/refactor--the TDD mantra.
Assuming for the moment that such a programming style is possible, it further might be possible to dramatically reduce the defect density of code and make the subject of work crystal clear to all involved. If so, then writing only that code which is demanded by failing tests also has social implications.
If the defect density can be reduced enough, then quality assurance (QA) can shift from reactive work to proactive work.








点击看大图





加载中...

