Test Driven Development: By Example
Autor Kent Becken Limba Engleză Paperback – 8 noi 2002
Descoperim în Test Driven Development: By Example fundamentele unei metodologii care a redefinit standardele de calitate în ingineria software. Kent Beck nu propune doar o tehnică de testare, ci un stil de lucru care prioritizează claritatea și eliminarea incertitudinii din procesul de programare. Considerăm că focusul pe ciclul „Red-Green-Refactor” — scrierea unui test care eșuează, implementarea soluției minime și optimizarea codului — reprezintă nucleul unei discipline care transformă radical modul în care abordăm dezvoltarea de aplicații. Cititorul care a aplicat deja ideile din Professional Test Driven Development with C# de James Bender va găsi aici fundamentul filosofic și mecanic al acestor practici, explicate chiar de cel care le-a conceptualizat. În timp ce alte lucrări se pot concentra pe un ecosistem specific, Beck utilizează exemple precum gestionarea monedelor multiple sau construcția de la zero a unui framework xUnit pentru a demonstra aplicabilitatea universală a metodei. Această lucrare ocupă un loc central în opera autorului, rafinând conceptele de agilitate prezentate în Extreme Programming Explained și oferind contextul practic pentru tehnicile de îmbunătățire a structurii codului din Refactoring. Ne-a atras atenția structura riguroasă a cărții: progresia de la un exemplu concret („The Money Example”) la meta-programarea unui instrument de testare („The xUnit Example”), culminând cu o secțiune densă de tipare de design. Acest parcurs indică o tranziție logică de la execuție la abstractizare, oferind programatorilor instrumentele necesare pentru a scrie cod curat și robust. Abordarea bazată pe exemple elimină barierele teoretice, permițând echipelor să vadă rezultate imediate în reducerea defectelor și îmbunătățirea comunicării tehnice.
Preț: 281.42 lei
Preț vechi: 351.77 lei
-20%
Carte disponibilă
Livrare economică 29 aprilie-13 mai
Livrare express 14-18 aprilie pentru 35.45 lei
Specificații
ISBN-10: 0321146530
Pagini: 240
Dimensiuni: 187 x 235 x 14 mm
Greutate: 0.45 kg
Ediția:1. Auflage
Editura: Pearson International
Locul publicării:Boston, United States
Recenzii de la cititorii Books Express
Anonim a dat nota:
Interesting Introduction to Test Driven Development. Light read , easy to follow offers insights both on reasons to adopting TDD and small easy to follow examples on how to start using TDD. Even though some refactoring steps seem really small the author insists on letting you decide when you might do really small refactoring or jump over some steps depending of the knowledge of the code and programmers confidence. Also part II offers an insight on the internals of an unit testing framework while the final part helps you introduce TDD in real day to day integration of existing code.
De ce să citești această carte
Recomandăm această carte programatorilor și managerilor de proiect care doresc să elimine stresul lansărilor și să livreze cod de înaltă calitate. Cititorul câștigă o metodă riguroasă de a scrie teste automatizate care ghidează designul software-ului, nu doar îl verifică. Este o investiție în eficiență: înveți să previi erorile înainte ca ele să apară, stăpânind ritmul specific TDD sub îndrumarea directă a lui Kent Beck.
Despre autor
Kent Beck este unul dintre cei mai influenți lideri din industria software, recunoscut pentru contestarea dogmelor tradiționale și promovarea unor idei revoluționare precum Extreme Programming și Test-Driven Development. Afiliat în prezent cu Three Rivers Institute, Beck a modelat modul în care se scrie codul modern. Este autorul unor titluri de referință care includ Smalltalk Best Practice Patterns și co-autor al lucrării Refactoring alături de Martin Fowler. Expertiza sa vastă în designul orientat pe obiecte și pasiunea pentru arhitecturile software curate l-au transformat într-o autoritate indispensabilă pentru orice dezvoltator care aspiră la excelență tehnică.
Descriere
Test Driven Development (TDD) is Kent Becks latest focus; the approach is proven to reduce defects and produce more robust software
- Write clean code that works with the help of this groundbreaking software method
- Begin to write automated tests that allow you to "test on the fly," and learn to optimize the practice of refactoring
- Example-driven teaching; Kent Becks step-by-step instruction will have you using TDD to further your projects
Technology:
Quite simply, test-driven development is meant to eliminate fear in application development. While some believe fear is healthy (often viewed as a conscience that tells programmers to "be careful!"), the author believes that byproducts of fear include tentative, grumpy, and uncommunicative programmers who are unable to absorb constructive criticism. When programming teams buy into TDD, they immediately see positive results. They eliminate the fear involved in their jobs, and are better equipped to tackle the difficult challenges that face them.
User Level:
Intermediate.
Audience:
Programmers, project managers and application developers.
Author Biography:
Kent Beck is a highly acclaimed software developer who is considered one of the most creative and innovative leaders in the software industry. He is currently affiliated with the Three Rivers Institute. Patterns, Extreme Programming, and Test-driven Development are his most passionate interests. He is the best-selling author of Smalltalk Best Practice Patterns (PH, 1997), Refactoring (with Martin Fowler, AW, 1999), Extreme Programming Explained (AW, 2000), and Planning Extreme Programming (with Martin Fowler, AW, 2001).
Cuprins
Preface.
Acknowledgments.
Introduction.
I. THE MONEY EXAMPLE.
1. Multi-Currency Money.
2. Degenerate Objects.
3. Equality for All.
4. Privacy.
5. Franc-ly Speaking.
6. Equality for All, Redux.
7. Apples and Oranges.
8. Makin' Objects.
9. Times We're Livin' In.
10. Interesting Times.
11. The Root of All Evil.
12. Addition, Finally.
13. Make It.
14. Change.
15. Mixed Currencies.
16. Abstraction, Finally.
17. Money Retrospective.
II. The xUnit Example.
18. First Steps to xUnit.
19. Set the Table.
20. Cleaning Up After.
21. Counting.
22. Dealing with Failure.
23. How Suite It Is.
24. xUnit Retrospective.
III. Patterns for Test-Driven Development.
25. Test-Driven Development Patterns.
26. Red Bar Patterns.
27. Testing Patterns.
28. Green Bar Patterns.
29. xUnit Patterns.
30. Design Patterns.
31. Refactoring.
32. Mastering TDD.
Appendix I: Influence Diagrams.
Appendix II: Fibonacci.
Afterword.
Index. 0321146530T10172002
Notă biografică
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.
Textul de pe ultima copertă
Clean code that works--now. This is the seeming contradiction that lies behind much of the pain of programming. Test-driven development replies to this contradiction with a paradox--test the program before you write it.
A new idea? Not at all. Since the dawn of computing, programmers have been specifying the inputs and outputs before programming precisely. Test-driven development takes this age-old idea, mixes it with modern languages and programming environments, and cooks up a tasty stew guaranteed to satisfy your appetite for clean code that works--now.
Developers face complex programming challenges every day, yet they are not always readily prepared to determine the best solution. More often than not, such difficult projects generate a great deal of stress and bad code. To garner the strength and courage needed to surmount seemingly Herculean tasks, programmers should look to test-driven development (TDD), a proven set of techniques that encourage simple designs and test suites that inspire confidence.
By driving development with automated tests and then eliminating duplication, any developer can write reliable, bug-free code no matter what its level of complexity. Moreover, TDD encourages programmers to learn quickly, communicate more clearly, and seek out constructive feedback.
Readers will learn to:
- Solve complicated tasks, beginning with the simple and proceeding to the more complex.
- Write automated tests before coding.
- Grow a design organically by refactoring to add design decisions one at a time.
- Create tests for more complicated logic, including reflection and exceptions.
- Use patterns to decide what tests to write.
- Create tests using xUnit, the architecture at the heart of many programmer-oriented testing tools.
This book follows two TDD projects from start to finish, illustrating techniques programmers can use to easily and dramatically increase the quality of their work. The examples are followed by references to the featured TDD patterns and refactorings. With its emphasis on agile methods and fast development strategies, Test-Driven Development is sure to inspire readers to embrace these under-utilized but powerful techniques.
0321146530B10172002
Descriere scurtă
Test-driven development (TDD) is a new approach to application development that is designed to eliminate the fear often associated with building software. Admittedly, some fear is healthy (often viewed as a conscience that tells programmers to "be careful!"), but the author believes that programmers build better software when they have the freedom to be creative. By building tests before coding begins, programmers ensure the success of their application from the outset. Students are more likely to achieve positive results with TDD. The author's example-driven approach also teaches students to be better communicators, and encourages team members to seek out constructive criticism.