Growing Object-Oriented Software, Guided by Tests- P1: Test-Driven Development (TDD) hiện nay là một kỹ thuật được thành lập để cung cấp các phần mềm tốt hơn nhanh hơn. TDD là dựa trên một ý tưởng đơn giản: các bài kiểm tra Viết cho code của bạn trước khi bạn viết đoạn code riêng của mình. Tuy nhiên, điều này "đơn giản" ý tưởng có kỹ năng và bản án để làm tốt. Bây giờ có một tài liệu hướng dẫn thiết thực để TDD mà sẽ đưa bạn vượt ra ngoài những khái niệm cơ bản. Vẽ trên một...
Nội dung trích xuất từ tài liệu:
Growing Object-Oriented Software, Guided by Tests- P1
Please purchase PDF Split-Merge on www.very
Praise for Growing Object-Oriented Software, Guided by Tests
“The authors of this book have led a revolution in the craft of programming by controlling
the environment in which software grows. Their Petri dish is the mock object, and their
microscope is the unit test. This book can show you how these tools introduce a
repeatability to your work that would be the envy of any scientist.”
—Ward Cunningham
“At last a book, suffused with code, that exposes the deep symbiosis between TDD and
OOD. The authors, pioneers in test-driven development, have packed it with principles,
practices, heuristics, and (best of all) anecdotes drawn from their decades of professional
experience. Every software craftsman will want to pore over the chapters of worked
examples and study the advanced testing and design principles. This one’s a keeper.”
—Robert C. Martin
“Design is often discussed in depth, but without empiricism. Testing is often promoted,
but within the narrow definition of quality that relates only to the presence or absence of
defects. Both of these perspectives are valuable, but each on its own offers little more than
the sound of one hand clapping. Steve and Nat bring the two hands together in what
deserves—and can best be described as—applause. With clarity, reason, and humour,
their tour de force reveals a view of design, testing, code, objects, practice, and process
that is compelling, practical, and overflowing with insight.”
—Kevlin Henney, co-author of Pattern-Oriented Software Architecture
and 97 Things Every Programmer Should Know
“Steve and Nat have written a wonderful book that shares their software craftsmanship
with the rest of the world. This is a book that should be studied rather than read, and
those who invest sufficient time and energy into this effort will be rewarded with superior
development skills.”
—David Vydra, publisher, testdriven.com
“This book presents a unique vision of test-driven development. It describes the mature
form of an alternative strain of TDD that sprang up in London in the early 2000s,
characterized by a totally end-to-end approach and a deep emphasis on the messaging
aspect of objects. If you want to be an expert in the state of the art in TDD, you need to
understand the ideas in this book.”
—Michael Feathers
“With this book you’ll learn the rhythms, nuances in thinking, and effective programming
practices for growing tested, well-designed object-oriented applications from the masters.”
—Rebecca Wirfs-Brock
This page intentionally left blank
Growing
Object-Oriented
Software,
Guided
by Tests
The Addison-Wesley
Signature Series
Kent Beck, Mike Cohn, and Martin Fowler, Consulting Editors
Visit informit.com /awss for a complete list of available products.
he Addison-Wesley Signature Series provides readers with
T practical and authoritative information on the latest trends in modern
technology for computer professionals. The series is based on one simple
premise: Great books come from great authors. Books in the series are
personally chosen by expert advisors, world-class authors in their own
right. These experts are proud to put their signatures on the covers, and
their signatures ensure that these thought leaders have worked closely
with authors to define topic coverage, book scope, critical content, and
overall uniqueness. The expert signatures also symbolize a promise to
our readers: You are reading a future classic.
Growing
Object-Oriented
Software,
Guided
by Tests
Steve Freeman and Nat Pryce
Upper Saddle River, NJ • Boston • Indianapolis • San Francisco
New York • Toronto • Montreal • London • Munich • Paris • Madrid
Cape Town • Sydney • Tokyo • Singapore • Mexico City
Many of the designations used by manufacturers and sellers to distinguish their products are claimed
as trademarks. Where those designations appear in this book, and the publisher was aware of a
trademark claim, the designations have been printed with initial capital letters or in all capitals.
The authors and publisher have taken care in the preparation of this book, but make no expressed
or implied warranty of any kind and assume no responsibility for errors or omissions. No liability
is assumed for incidental or consequential damages in connection with or arising out of the use of
the information or programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases
or special sales, which may include electronic versions and/or custom covers and content particular
to your business, training goals, marketing focus, and branding interests. For more information,
please contact:
U.S. Corporate and Government Sales
(800) 382–3419
corpsales@pearsontechgroup.com
For sales outside the United States please contact:
International Sales
international@pearson.com
Visit us on the Web: informit.com/aw
Library of Congress Cataloging-in-Publication Data:
Freeman, Steve, 1958-
Growing object-oriented software, guided by tests / Steve Freeman and Nat Pryce.
p. cm.
ISBN 978-0-321-50362-6 (pbk. : alk. paper) 1. Object-oriented programming
(Computer science) 2. Computer software--Testing. I. Pryce, Nat. II. Title.
QA76.64.F747 2010
005.1'17--dc22
2009035239
Copyright © 2010 Pearson Education, Inc.
All rights reserved. Printed in the United States of America. This publ ...