- 出版社: Addison-Wesley Professional; 1 (2002年11月18日)
- 丛书名: Addison-Wesley Signature Series (Beck)
- 平装: 240页
- 语种： 英语
- ISBN: 0321146530
- 条形码: 9780321146533, 0785342146530
- 商品尺寸: 18.5 x 1.8 x 23.4 cm
- 商品重量: 748 g
- ASIN: 0321146530
- 用户评分: 2 条商品评论
- 亚马逊热销商品排名: 图书商品里排第881,325名 (查看图书商品销售排行榜)
Test Driven Development: By Example (英语) 平装 – 2002年11月18日
Kent Beck consistently challenges software engineering dogma, promoting ideas like patterns, test-driven development, and Extreme Programming. Currently affiliated with Three Rivers Institute and Agitar Software, he is the author of many Addison-Wesley titles.
I. THE MONEY EXAMPLE.
II. The xUnit Example.
III. Patterns for Test-Driven Development.
Where I disagree is in the use of the tests to drive software design. In the first part of the book, which I think is the most important part, a very good coding problem is analyzed - it is realistic, limited in scope and far from trivial. I followed along until I reached a point where things stopped making sense. I skipped ahead to see where things were headed and then things became clear.
What is being advocated is a type of bottom up design approach. This may work for some. It may even be that the book faithfully reproduced Beck's reasoning process. It does not work for me. I first have to see the larger picture, what he refers to as the "metaphor." The whole thing would have been much clearer to me if at the beginning I was told that one approach to summing money in different currencies would be to use an array to store the information but that instead the implementation would create a list similar to how things are done in LISP.
I urge the reader to judge for him/herself. Like I said this is a good example to go through. I even learned some things about more advanced uses of object oriented programming. As for software design I am going to stick with dataflow diagrams. They are still the best tool that I know of for putting together software, UML notwithstanding.
Before the publication of this book, there was a lack of a good manual for xUnit testing framework. The title "Testing Extreme Programming" by Lisa Crispin and Tip House, released a couple of month before this book, didn't fill the gap. This book is the first significant guidebook for xUnit ever released. While the work "Extreme Programming Installed" exposes most valuable testing experience among other XP titles, it didn't focus on xUnit as well.
I would recommend "Design Pattern" and "Refactoring" in addition to this book, assuming that you are aware of the XP manifesto: "Extreme Programming Explained".